Update app.py
Browse files
app.py
CHANGED
@@ -143,8 +143,17 @@ def create_component_for_analysis_for_single_df(selected_files, dfs, i):
|
|
143 |
if action == 'Sample Data':
|
144 |
st.write(df_for_analysis.sample(10))
|
145 |
elif action == 'Get Profile':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
|
147 |
-
pr = df_for_analysis.profile_report()
|
148 |
st_profile_report(pr)
|
149 |
|
150 |
elif action == 'Summary of Data':
|
|
|
143 |
if action == 'Sample Data':
|
144 |
st.write(df_for_analysis.sample(10))
|
145 |
elif action == 'Get Profile':
|
146 |
+
|
147 |
+
col_subset = st.multiselect("Select subset of columns", df.columns.values,key='filter_subset_'+ str(i))
|
148 |
+
|
149 |
+
if not col_subset:
|
150 |
+
st.warning("This might take a lot of time to generate the report depending on the size of the data.Select a subset of columns")
|
151 |
+
confirm_full_run = st.button("Run on full data")
|
152 |
+
if confirm_full_run:
|
153 |
+
pr = df_for_analysis.profile_report()
|
154 |
+
else:
|
155 |
+
pr = df_for_analysis[col_subset]
|
156 |
|
|
|
157 |
st_profile_report(pr)
|
158 |
|
159 |
elif action == 'Summary of Data':
|