dataviz package¶
Submodules¶
dataviz.cluster_plotter module¶
Module to plot scatter plot of clusters
- Author(s):
Carl Anderson (carl.anderson@weightwatchers.com)
-
class
dataviz.cluster_plotter.
ClusterPlotter
(configuration, instance_name)¶ Bases:
primrose.base.node.AbstractNode
Plot clusters on a 2D scatter plot
-
static
necessary_config
(node_config)¶ Returns the necessary configuration keys for the ClusterPlotter object
Note
id_col (str): name of column with cluster IDs filename (str): name of the file
- Returns
set of necessary keys for the CsvReader object
-
run
(data_object)¶ Create a PNG image of the clustered data
Note
saves image to file specified in filename key optional key: title which is title of plot
- Returns
DataObject instance. Here, it is unmodified terminate (bool): should we terminate the DAG? true or false. Terminate if empty data
- Return type
data_object (DataObject)
-
static