Skip to content

Commit

Permalink
Pass str directly to map, lambda is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
ssiegel committed Nov 7, 2024
1 parent 76590dd commit b0f18fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ydata_profiling/model/pandas/dataframe_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def pandas_preprocess(config: Settings, df: pd.DataFrame) -> pd.DataFrame:
df = rename_index(df)

# Ensure that columns are strings
df.columns = df.columns.map(lambda col: str(col))
df.columns = df.columns.map(str)
return df

0 comments on commit b0f18fe

Please sign in to comment.