Skip to content

Commit

Permalink
fix: reorder columns in filtered DataFrame to ensure required metadat…
Browse files Browse the repository at this point in the history
…a appears last
  • Loading branch information
Ovler-Young committed Nov 20, 2024
1 parent d4972b2 commit 7a1f599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ia_collection_analyzer/streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
col1, col2 = st.columns([6, 1], vertical_alignment="bottom")
selected_columns = st.multiselect("Select columns:", seleactable_columns, default=st.session_state.selected_columns)

filtered_pd = items_pd[REQUIRED_METADATA + selected_columns]
filtered_pd = items_pd[selected_columns+REQUIRED_METADATA]
filtered_pd = filtered_pd.dropna(axis=0, how="any")

st.write("Preview of the selected columns:")
Expand Down

0 comments on commit 7a1f599

Please sign in to comment.