Spaces:
Runtime error
Runtime error
feat: new col1 and 2
Browse files- pages/1_📈_Plotting.py +10 -8
pages/1_📈_Plotting.py
CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
|
|
2 |
import pandas as pd
|
3 |
|
4 |
st. set_page_config(layout="wide")
|
5 |
-
st.header("Plotting Time
|
6 |
-
st.markdown("Users can load their time-series data in **.csv** format and select a particular feature and plot-type
|
7 |
Go ahead and use the sidebar on the left to upload your data files and to start visualizing it!")
|
8 |
|
9 |
|
@@ -45,12 +45,14 @@ else:
|
|
45 |
|
46 |
df_base = st.session_state.df if 'df' in list(st.session_state.keys()) else pd.DataFrame()
|
47 |
n = len(df_base)
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
54 |
|
55 |
if not df_base.empty:
|
56 |
st.warning("Consider running outlier detection to clean your data!", icon="⚠️")
|
|
|
2 |
import pandas as pd
|
3 |
|
4 |
st. set_page_config(layout="wide")
|
5 |
+
st.header("Plotting Time Series Data")
|
6 |
+
st.markdown("Users can load their time-series data in **.csv** format and select a particular feature and plot-type.\
|
7 |
Go ahead and use the sidebar on the left to upload your data files and to start visualizing it!")
|
8 |
|
9 |
|
|
|
45 |
|
46 |
df_base = st.session_state.df if 'df' in list(st.session_state.keys()) else pd.DataFrame()
|
47 |
n = len(df_base)
|
48 |
+
col1, col2 = st.columns(2)
|
49 |
+
with col1:
|
50 |
+
if n:
|
51 |
+
st.info(f"Your data has {n} samples.")
|
52 |
+
slider_range = list(range(n))
|
53 |
+
n_plot = st.slider("How many samples do you want to plot in the same graph", slider_range[0]+1, slider_range[-1]+1, 5)
|
54 |
+
st.write(f"Action: {plot} using {n_plot} samples")
|
55 |
+
st.button("Plot now! 📊")
|
56 |
|
57 |
if not df_base.empty:
|
58 |
st.warning("Consider running outlier detection to clean your data!", icon="⚠️")
|