lux.action package¶
Submodules¶
lux.action.correlation module¶
-
lux.action.correlation.
check_transpose_not_computed
(vlist: lux.vis.VisList.VisList, a: str, b: str)[source]¶
-
lux.action.correlation.
correlation
(ldf: lux.core.frame.LuxDataFrame, ignore_transpose: bool = True)[source]¶ Generates bivariate visualizations that represent all pairwise relationships in the data.
Parameters: - ldf (LuxDataFrame) – LuxDataFrame with underspecified intent.
- ignore_transpose (bool) – Boolean flag to ignore pairs of attributes whose transpose are already computed (i.e., {X,Y} will be ignored if {Y,X} is already computed)
Returns: recommendations – object with a collection of visualizations that result from the Correlation action.
Return type: Dict[str,obj]
lux.action.custom module¶
-
lux.action.custom.
custom
(ldf)[source]¶ Generates user-defined vis based on the intent.
Parameters: ldf (lux.core.frame) – LuxDataFrame with underspecified intent. Returns: recommendations – object with a collection of visualizations that result from the Distribution action. Return type: Dict[str,obj]
-
lux.action.custom.
custom_actions
(ldf)[source]¶ Generates user-defined vis based on globally defined actions.
Parameters: ldf (lux.core.frame) – LuxDataFrame with underspecified intent. Returns: recommendations – object with a collection of visualizations that were previously registered. Return type: Dict[str,obj]
lux.action.enhance module¶
-
lux.action.enhance.
enhance
(ldf)[source]¶ Given a set of vis, generates possible visualizations when an additional attribute is added to the current vis.
Parameters: ldf (lux.core.frame) – LuxDataFrame with underspecified intent. Returns: recommendations – object with a collection of visualizations that result from the Enhance action. Return type: Dict[str,obj]
lux.action.filter module¶
-
lux.action.filter.
add_filter
(ldf)[source]¶ Iterates over all possible values of a categorical variable and generates visualizations where each categorical value filters the data.
Parameters: ldf (lux.core.frame) – LuxDataFrame with underspecified intent. Returns: recommendations – object with a collection of visualizations that result from the Filter action. Return type: Dict[str,obj]
lux.action.generalize module¶
-
lux.action.generalize.
generalize
(ldf)[source]¶ Generates all possible visualizations when one attribute or filter from the current vis is removed.
Parameters: ldf (lux.core.frame) – LuxDataFrame with underspecified intent. Returns: recommendations – object with a collection of visualizations that result from the Generalize action. Return type: Dict[str,obj]
lux.action.univariate module¶
-
lux.action.univariate.
univariate
(ldf, *args)[source]¶ Generates bar chart distributions of different attributes in the dataframe.
Parameters: - ldf (lux.core.frame) – LuxDataFrame with underspecified intent.
- data_type_constraint (str) – Controls the type of distribution chart that will be rendered.
Returns: recommendations – object with a collection of visualizations that result from the Distribution action.
Return type: Dict[str,obj]