Skip to content

Commit

Permalink
add category type back
Browse files Browse the repository at this point in the history
  • Loading branch information
melonora committed Mar 11, 2024
1 parent ed4cc94 commit cf7d3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cell_gater/utils/csv_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def stack_csv_files(csv_dir: Path) -> pd.DataFrame | None:
df_file = pd.read_csv(file)
df_file["sample_id"] = file.stem
df = pd.concat([df, df_file], ignore_index=True)
df["sample_id"] = df.sample_id.astype("category")

return df

Expand Down

0 comments on commit cf7d3d9

Please sign in to comment.