Aziz Alto commited on
Commit
2d5c174
·
1 Parent(s): 53f4c47

Remove sidebar to make more space

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -79,8 +79,8 @@ def display(df):
79
  types_ = df.dtypes.to_dict()
80
  types_ = [{"Column": c, "Type": t} for c, t in types_.items()]
81
  df_ = pd.DataFrame(types_)
82
- st.sidebar.subheader("TABLE DETAILS")
83
- st.sidebar.write(df_)
84
 
85
 
86
  def code_editor(language, hint, show_panel, key=None):
@@ -266,7 +266,7 @@ if __name__ == "__main__":
266
  Describe the table:
267
  DESCRIBE TABLE df
268
  """
269
- number_cells = st.sidebar.number_input("Number of SQL cells to use", value=1, max_value=40)
270
  for i in range(number_cells):
271
  col1, col2 = st.columns([2, 1])
272
  st.markdown("<br>", unsafe_allow_html=True)
@@ -312,7 +312,7 @@ if __name__ == "__main__":
312
  st.bar_chart(groups[i].mean())
313
  ```
314
  """
315
- number_cells = st.sidebar.number_input("Number of Python cells to use", value=1, max_value=40, min_value=1, help=help)
316
  for i in range(number_cells):
317
  st.markdown("<br><br><br>", unsafe_allow_html=True)
318
  col1, col2 = st.columns([2, 1])
@@ -326,14 +326,14 @@ if __name__ == "__main__":
326
  run_python_script(user_script, key=f"{user_script}{i}")
327
 
328
 
329
- if st.sidebar.checkbox("Show SQL cells", value=True):
330
  sql_cells(df)
331
- if st.sidebar.checkbox("Show Python cells", value=True):
332
  python_cells()
333
 
334
- st.sidebar.write("---")
335
 
336
- if st.sidebar.checkbox("Generate Data Profile Report", help="pandas profiling, generated by [ydata-profiling](https://github.com/ydataai/ydata-profiling)"):
337
  st.write("---")
338
  st.header("Data Profiling")
339
  profile = data_profiler(df)
 
79
  types_ = df.dtypes.to_dict()
80
  types_ = [{"Column": c, "Type": t} for c, t in types_.items()]
81
  df_ = pd.DataFrame(types_)
82
+ st.subheader("TABLE DETAILS")
83
+ st.write(df_)
84
 
85
 
86
  def code_editor(language, hint, show_panel, key=None):
 
266
  Describe the table:
267
  DESCRIBE TABLE df
268
  """
269
+ number_cells = st.number_input("Number of SQL cells to use", value=1, max_value=40)
270
  for i in range(number_cells):
271
  col1, col2 = st.columns([2, 1])
272
  st.markdown("<br>", unsafe_allow_html=True)
 
312
  st.bar_chart(groups[i].mean())
313
  ```
314
  """
315
+ number_cells = st.number_input("Number of Python cells to use", value=1, max_value=40, min_value=1, help=help)
316
  for i in range(number_cells):
317
  st.markdown("<br><br><br>", unsafe_allow_html=True)
318
  col1, col2 = st.columns([2, 1])
 
326
  run_python_script(user_script, key=f"{user_script}{i}")
327
 
328
 
329
+ if st.checkbox("Show SQL cells", value=True):
330
  sql_cells(df)
331
+ if st.checkbox("Show Python cells", value=True):
332
  python_cells()
333
 
334
+ st.write("---")
335
 
336
+ if st.checkbox("Generate Data Profile Report", help="pandas profiling, generated by [ydata-profiling](https://github.com/ydataai/ydata-profiling)"):
337
  st.write("---")
338
  st.header("Data Profiling")
339
  profile = data_profiler(df)