Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
OMGToFo authored Dec 30, 2023
1 parent 495bc94 commit f148481
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

import numpy as np

#Um den Datensatz zu analysieren:
from streamlit_pandas_profiling import st_profile_report
from pandas_profiling import ProfileReport


#update 2023.12.30 wegen Fehlermeldung
#from ydata_profiling import ProfileReport
#from streamlit_pandas_profiling import st_profile_report

#2023.06.18 pygwalker visualization library
import pygwalker as pyg
Expand Down Expand Up @@ -254,19 +256,17 @@ def to_excel(rawData):


st.write("")

_="""
if st.button("Show Profile-Reporting?"):




st.write("ProfileReport:")
profile = ProfileReport(df_statistischeTestrawData)
st_profile_report(profile)


export=profile.to_html()
st.download_button(label="Download Profile Report?", data=export, file_name='report.html')
st.write("ProfileReport:")
profile = ProfileReport(df_statistischeTestrawData)
st_profile_report(profile)
export=profile.to_html()
st.download_button(label="Download Profile Report?", data=export, file_name='report.html')
"""



Expand Down Expand Up @@ -401,18 +401,16 @@ def to_excel(labelledData):




_="""
if st.button("Show Profile-Reporting?", key='profileReporLabeledeDataReport'):




st.write("ProfileReport:")
profile = ProfileReport(df_statistischeTestLabeledData)
st_profile_report(profile)
export=profile.to_html()
st.download_button(label="Download Profile Report", data=export, file_name='report.html')
"""



Expand All @@ -425,7 +423,7 @@ def to_excel(labelledData):
if len(rawData)>1 and len(labelledData)>1:


MergedDataExpander = st.expander("Ccombined datasets") ############################
MergedDataExpander = st.expander("Combined datasets") ############################
with MergedDataExpander:

# Load the data frames
Expand All @@ -442,7 +440,7 @@ def to_excel(labelledData):

#st.write(df1_prefixed)
#st.write(df2_prefixed)
st.subheader("Combinded Dataset containing all categorical and numerical Variables")
st.subheader("Combined Dataset containing all categorical and numerical Variables")
#mergeAll = st.button("Merge all columns with categorical and numerical data?")
mergeAll = True
mergeAll_df = pd.DataFrame()
Expand Down Expand Up @@ -689,7 +687,6 @@ def load_config(file_path):

if st.checkbox("Show frequencies and percentages of values for every chosen variable"):


st.subheader("Separate tables for every variable:")
st.info("Sum per Variable is 100%")

Expand Down Expand Up @@ -1048,6 +1045,7 @@ def to_excel(ThomasFormatiertesDataframe):
st.write("")
st.write("")

_="""
if st.button("Show Profile-Reporting of all selected variables?", key='profileReporLabeledeData'):
st.write("ProfileReport:")
profile = ProfileReport(merged_df)
Expand All @@ -1056,7 +1054,7 @@ def to_excel(ThomasFormatiertesDataframe):
export = profile.to_html()
st.download_button(label="Download Profile Report of selected variables", data=export, file_name='report.html')

"""


########################################## Metadata ##############################################################################################################################
Expand Down

0 comments on commit f148481

Please sign in to comment.