Aziz Alto
commited on
Commit
·
2d5c174
1
Parent(s):
53f4c47
Remove sidebar to make more space
Browse files
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.
|
| 83 |
-
st.
|
| 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.
|
| 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.
|
| 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.
|
| 330 |
sql_cells(df)
|
| 331 |
-
if st.
|
| 332 |
python_cells()
|
| 333 |
|
| 334 |
-
st.
|
| 335 |
|
| 336 |
-
if st.
|
| 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)
|