Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OMGToFo authored Jul 4, 2024
1 parent 4c40d8b commit f5cc402
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

st.title("SPSS File Viewer")
st.info("Here you can view SPSS-Files with/without labels and also export them to Excel and do some basic statistical testing and tabulation")
st.warning("Unfortunatlely this app get's shut down now and then, i think due to data usage limits")
st.warning("Unfortunatlely this app crashes kinda often, i think due to data usage limits")

col_names_labels_df = pd.DataFrame()

Expand Down Expand Up @@ -67,14 +67,12 @@
# Checkbox to allow renaming columns with variable labels ############################


st.write("")
rename_columns = st.checkbox("Rename column names with labels \n (Attention - as of now there have to be Variable Labels in SPSS to all Variables!")


st.sidebar.write("")
rename_columns = st.sidebar.checkbox("Rename column names with labels \n (Attention - as of now there have to be Variable Labels in SPSS to all Variables!")


st.sidebar.write("")
dropEmptyColumns= st.sidebar.checkbox("Drop all columns that only contain Nan or None Values - helps if renaming does not work")
st.write("")
dropEmptyColumns= st.checkbox("Drop all columns that only contain Nan or None Values - helps if renaming does not work")
if dropEmptyColumns:
labelledData = labelledData.dropna(axis=1, how='all')
rawData = rawData.dropna(axis=1, how='all')
Expand Down

0 comments on commit f5cc402

Please sign in to comment.