fixed for basic plots, filter active
This commit is contained in:
@@ -127,7 +127,7 @@ def _():
|
||||
@app.cell
|
||||
def _(S, data_validated):
|
||||
demographics = S.get_demographics(data_validated)[0].collect()
|
||||
demographics
|
||||
# demographics
|
||||
return (demographics,)
|
||||
|
||||
|
||||
@@ -135,7 +135,7 @@ def _(S, data_validated):
|
||||
def _(demographics):
|
||||
# Demographics where 'Consumer' is null
|
||||
demographics_no_consumer = demographics.filter(pl.col('Consumer').is_null())['_recordId'].to_list()
|
||||
demographics_no_consumer
|
||||
# demographics_no_consumer
|
||||
return (demographics_no_consumer,)
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ def _(S):
|
||||
|
||||
{filter_form}
|
||||
''')
|
||||
return
|
||||
return (filter_form,)
|
||||
|
||||
|
||||
@app.cell
|
||||
@@ -194,15 +194,15 @@ def _():
|
||||
|
||||
|
||||
@app.cell
|
||||
def _(data_validated):
|
||||
# mo.stop(filter_form.value is None, mo.md("**Please submit filter above to proceed**"))
|
||||
# _d = S.filter_data(data_validated, age=filter_form.value['age'], gender=filter_form.value['gender'], income=filter_form.value['income'], ethnicity=filter_form.value['ethnicity'], consumer=filter_form.value['consumer'])
|
||||
def _(S, data_validated, filter_form):
|
||||
mo.stop(filter_form.value is None, mo.md("**Please submit filter above to proceed**"))
|
||||
_d = S.filter_data(data_validated, age=filter_form.value['age'], gender=filter_form.value['gender'], income=filter_form.value['income'], ethnicity=filter_form.value['ethnicity'], consumer=filter_form.value['consumer'])
|
||||
|
||||
# # Stop execution and prevent other cells from running if no data is selected
|
||||
# mo.stop(len(_d.collect()) == 0, mo.md("**No Data available for current filter combination**"))
|
||||
# data = _d
|
||||
# Stop execution and prevent other cells from running if no data is selected
|
||||
mo.stop(len(_d.collect()) == 0, mo.md("**No Data available for current filter combination**"))
|
||||
data = _d
|
||||
|
||||
data = data_validated
|
||||
# data = data_validated
|
||||
data.collect()
|
||||
return (data,)
|
||||
|
||||
@@ -769,7 +769,7 @@ def _(S, joined_scale):
|
||||
data=joined_scale,
|
||||
style_color=_style,
|
||||
style_traits=_traits,
|
||||
title=f"Correlation: Speaking Style {_style} and Voice Ranking Points",
|
||||
title=f"Correlation: Speaking Style {_style} and Voice Scale 1-10",
|
||||
)
|
||||
_content += f"""
|
||||
#### Speaking Style **{_style}**:
|
||||
|
||||
Reference in New Issue
Block a user