pdstools.app.decision_analyzer.da_streamlit_utils¶
Attributes¶
Functions¶
|
|
|
Picks up the last stage from session state if it is set and it is applicable to |
|
Picks up the last scope from session state if it is set and it is applicable to |
|
|
|
|
|
Adds a UI on top of a dataframe to let viewers filter columns |
|
|
|
|
|
|
Module Contents¶
- ensure_data()¶
- ensure_getFilterComponentData()¶
- polars_lazyframe_hashing¶
- get_current_index(options, session_state_key, default=0)¶
- get_current_stage_index(options)¶
Picks up the last stage from session state if it is set and it is applicable to current visual. Otherwise, picks the first option in the list
- get_current_scope_index(options)¶
Picks up the last scope from session state if it is set and it is applicable to current visual. Otherwise, picks the first option in the list
- show_filtered_counts(statsBefore, statsAfter)¶
- _clean_unselected_filters(to_filter_columns, filter_type)¶
- get_data_filters(df: polars.LazyFrame, columns=[], queries=[], filter_type='local') List[polars.Expr] ¶
Adds a UI on top of a dataframe to let viewers filter columns
- Parameters:
df (pl.DataFrame) – Original dataframe
- Return type:
List[polars.Expr]
- _create_page(relative_path, name)¶
- get_pages(extract_type)¶
- get_options()¶
- handle_sample_data(is_ec2)¶
- handle_file_upload()¶
- handle_direct_file_path()¶