Plotter.parallel_coordinates
- Plotter.parallel_coordinates(data: DataFrame, attributes: List[str] | None = None, value_ranges: dict[str, Tuple[float, float]] | None = None, color_by: str | None = None, output_name: str | None = None)[source]
Parallel coordinates plot for the given data.
- Parameters:
data ([
pd.DataFrame
]) – Dataframe containing data to plot. This could be data from the dataset or new samples generated by the model. The order of the parallel coordinates corresponds to the order of columns.attributes (List[str], optional) – List of variable names to plot (a selection from the data given). If not specified, all columns are plotted.
value_ranges (dict[str, Tuple[float, float]], optional) – Dictionary with column names (or variable names, if attributes are given) as keys and [min,max] as values. If not specified, the ranges are derived from the dataset (if attributes are given), or from the provided data (if otherwise).
color_by (str, optional) – Name of the variable to color the lines by. If not specified, default color (grey) is used for all samples.
output_name (str, optional, default=None) – Name of the output file. If None, the name is automatically generated from the data block name.
- Returns:
Optional[
plotly.graph_objects.Figure
] – Plotly figure object, if self.output is None, otherwise None.