haileyhalimj@gmail.com commited on
Commit
3e33d31
·
1 Parent(s): 8504f5a

Clean up: remove old src/utils files (moved to preprocess)

Browse files
Files changed (2) hide show
  1. src/utils/__init__.py +0 -1
  2. src/utils/file_utils.py +0 -21
src/utils/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Utility functions and classes for the supply roster tool."""
 
 
src/utils/file_utils.py DELETED
@@ -1,21 +0,0 @@
1
- import os
2
-
3
-
4
- def save_dataframes(dataframes, target, save_path):
5
- """
6
- Save pandas DataFrames to CSV files.
7
-
8
- Args:
9
- dataframes (dict): Dictionary mapping dataset names to DataFrames
10
- target (str): Target dataset name to save, or 'all' to save all
11
- save_path (str): Path to save the CSV files
12
- """
13
- os.makedirs(save_path, exist_ok=True)
14
-
15
- if target == "all":
16
- for name, df in dataframes.items():
17
- df.to_csv(os.path.join(save_path, f"{name}.csv"), index=False)
18
- elif target in dataframes:
19
- dataframes[target].to_csv(os.path.join(save_path, f"{target}.csv"), index=False)
20
- else:
21
- raise ValueError(f"Unknown target: {target}")