Skip to content

Commit

Permalink
perf: rename common fucntion name to enum/fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Haibin committed Sep 19, 2024
1 parent e5f518b commit 051eb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geochemistrypi/data_mining/utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def save_data(df: pd.DataFrame, name_column: str, df_name: str, local_data_path:
Whether to write the index.
"""
if name_column is not None and len(df) == len(name_column):
name_column = name_column.loc[df.index].reset_index(drop=True)
# name_column = name_column.loc[df.index].reset_index(drop=True)
df.reset_index(drop=True, inplace=True)
name_column.reset_index(drop=True, inplace=True)
df = pd.concat([name_column, df], axis=1)
Expand Down

0 comments on commit 051eb14

Please sign in to comment.