Skip to content

Commit

Permalink
use ignore_index to reset index on DataFrame concat
Browse files Browse the repository at this point in the history
  • Loading branch information
thwllms committed Jun 10, 2024
1 parent 3c8bcdf commit dc0c6f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rashdf/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _mesh_summary_output_min_max(
}
)
dfs.append(df)
df = pd.concat(dfs)
df = pd.concat(dfs, ignore_index=True)
return df

def _mesh_summary_output_basic(
Expand Down Expand Up @@ -298,7 +298,7 @@ def _mesh_summary_output_basic(
}
)
dfs.append(df)
df = pd.concat(dfs)
df = pd.concat(dfs, ignore_index=True)
return df

def mesh_max_iter(self) -> DataFrame:
Expand Down

0 comments on commit dc0c6f0

Please sign in to comment.