Skip to content

Commit

Permalink
Add comment about Unamed cols
Browse files Browse the repository at this point in the history
  • Loading branch information
dafeda committed Nov 30, 2024
1 parent 2a1ef4c commit 4a99906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/semeio/fmudesign/design_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,7 @@ def read_correlations(corr_dict, corr_sheet: str):

correlations = pd.read_excel(filename, corr_sheet, index_col=0, engine="openpyxl")
correlations.dropna(axis=0, how="all", inplace=True)
# Remove any 'Unnamed' columns that Excel/pandas may have automatically added.
correlations = correlations.loc[:, ~correlations.columns.str.contains("^Unnamed")]

return correlations

0 comments on commit 4a99906

Please sign in to comment.