pdstools.app.decision_analyzer.da_streamlit_utils

Attributes

Functions

ensure_data()

ensure_funnel()

ensure_getFilterComponentData()

get_current_index(options, key[, default])

Get index from session state if key exists and value is in options, else return default

show_filtered_counts(statsBefore, statsAfter)

_clean_unselected_filters(to_filter_columns, filter_type)

get_data_filters(→ List[polars.Expr])

Adds a UI on top of a dataframe to let viewers filter columns

get_options()

handle_sample_data(is_ec2)

handle_file_upload()

handle_direct_file_path()

st_priority_component_distribution(value_data, ...)

Module Contents

ensure_data()
ensure_funnel()
ensure_getFilterComponentData()
polars_lazyframe_hashing
get_current_index(options, key, default=0)

Get index from session state if key exists and value is in options, else return default

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]

get_options()
handle_sample_data(is_ec2)
handle_file_upload()
handle_direct_file_path()
st_priority_component_distribution(value_data: polars.LazyFrame, component, granularity)
Parameters:

value_data (polars.LazyFrame)