Skip to content

Commit

Permalink
chore: fmt code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Nov 20, 2024
1 parent 57c14f4 commit 7e7078b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ia_collection_analyzer/streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
# drop columns with 80%+ nan
items_pd = items_pd.dropna(axis=1, thresh=0.8 * len(items_pd))
# drop columns with different types inner.
#for col in items_pd.columns:
# for col in items_pd.columns:
# items_pd[col] = items_pd[col].apply(lambda x: x if isinstance(x, type(items_pd[col][0])) else np.nan)
# drop columns with only one unique value
# items_pd = items_pd.dropna(axis=1, thresh=2)
Expand All @@ -39,7 +39,7 @@
data_transform_text.text("Data transformation and cleaning complete!")

st.write("The collection contains the following items:")
st.write(items_pd.head(10)) # display the first 10 rows of the dataframe
st.write(items_pd.head(10)) # display the first 10 rows of the dataframe

st.header("Selecting columns to analyze")
st.write("Select additional columns you want to analyze:")
Expand Down

0 comments on commit 7e7078b

Please sign in to comment.