Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 1cc4c29

Browse files
committed
fix bug when CSV does not have all columns
1 parent 8bcfdb6 commit 1cc4c29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nowcasting_dataset/data_sources/metadata/metadata_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def load_from_csv(
161161
nrows=nrows,
162162
names=names,
163163
)
164+
metadata_df = metadata_df.dropna(axis="columns", how="all")
164165

165166
assert (
166167
len(metadata_df) > 0

0 commit comments

Comments
 (0)