Skip to content

Commit

Permalink
Simplify column rename when outputting resulting dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Feb 22, 2024
1 parent 7b689c3 commit 20e1686
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ica/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,7 @@ def prepare_df_for_output(df: pd.DataFrame) -> pd.DataFrame:
# Prettify header column (i.e. textual values in first column)
index=prettify_header_name,
# Prettify header row (i.e. column names)
columns={
column_name: prettify_header_name(column_name)
for column_name in df.columns
},
columns=prettify_header_name,
)
# Prettify index column name
.rename_axis(prettify_header_name(df.index.name), axis="index")
Expand Down

0 comments on commit 20e1686

Please sign in to comment.