lux.vis.VisList.VisList¶
-
class
lux.vis.VisList.VisList(input_lst: Union[List[lux.vis.Vis.Vis], List[lux.vis.Clause.Clause]], source=None)[source]¶ VisList is a list of Vis objects.
-
__init__(input_lst: Union[List[lux.vis.Vis.Vis], List[lux.vis.Clause.Clause]], source=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(input_lst, List[lux.vis.Clause.Clause]])Initialize self. get(field_name)map(function)normalize_score([invert_order])refresh_source(ldf)Loading the source into the visualizations in the VisList, then populating each visualization based on the new source data, effectively “materializing” the visualization collection. remove_duplicates()Removes duplicate visualizations in VisList remove_index(index)set(field_name, field_val)set_intent(intent)Sets the intent of the VisList and refresh the source based on the new clause :param intent: Query specifying the desired VisList :type intent: List[Clause] showK()sort([remove_invalid, descending])Attributes
exportedGet selected visualizations as exported Vis List intent-
refresh_source(ldf)[source]¶ Loading the source into the visualizations in the VisList, then populating each visualization based on the new source data, effectively “materializing” the visualization collection. :param ldf: Input Dataframe to be attached to the VisList :type ldf: LuxDataframe
Returns: Complete VisList with fully-specified fields Return type: VisList See also
lux.vis.Vis.refresh_source()Note
Function derives a new _inferred_intent by instantiating the intent specification on the new data
-