Skip to content

Commit 695d7a9

Browse files
committed
feat: enhance csv_to_dss function to ignore comment lines in CSV input
1 parent 8d49313 commit 695d7a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pydsm/analysis/dssutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def csv_to_dss(
355355
The index column (default 0) is parsed as the datetime index.
356356
D and E parts are inferred from the time series.
357357
"""
358-
df = pd.read_csv(csv_file, index_col=index_col, parse_dates=True)
358+
df = pd.read_csv(csv_file, index_col=index_col, parse_dates=True, comment='#')
359359
df = df * multiplier
360360
df = df.resample(resample_to).mean()
361361
with pyhecdss.DSSFile(dss_file, create_new=True) as f:

0 commit comments

Comments
 (0)