Spaces:
Runtime error
Runtime error
fix: init of df in Plotting
Browse files- pages/1_📈_Plotting.py +1 -1
pages/1_📈_Plotting.py
CHANGED
@@ -41,7 +41,7 @@ if 'df' in list(st.session_state.keys()):
|
|
41 |
else:
|
42 |
st.caption("Upload your data using the sidebar and select a plot-type to start :sunglasses:")
|
43 |
|
44 |
-
df_base = st.
|
45 |
n = len(df_base)
|
46 |
if n:
|
47 |
st.info("Your data has {} samples.")
|
|
|
41 |
else:
|
42 |
st.caption("Upload your data using the sidebar and select a plot-type to start :sunglasses:")
|
43 |
|
44 |
+
df_base = st.session_state.df if 'df' in list(st.session_state.keys()) else pd.DataFrame()
|
45 |
n = len(df_base)
|
46 |
if n:
|
47 |
st.info("Your data has {} samples.")
|