File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
_delphi_utils_python/delphi_utils Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -64,16 +64,16 @@ def create_export_csv(
64
64
else :
65
65
export_filename = f"{ date .strftime ('%Y%m%d' )} _{ geo_res } _{ metric } _{ sensor } .csv"
66
66
export_file = join (export_dir , export_filename )
67
- EXPECTED_COLUMNS = [
68
- "geo_id" ,
69
- "val" ,
70
- "se" ,
71
- "sample_size" ,
72
- "missing_val" ,
73
- "missing_se" ,
67
+ expected_columns = [
68
+ "geo_id" ,
69
+ "val" ,
70
+ "se" ,
71
+ "sample_size" ,
72
+ "missing_val" ,
73
+ "missing_se" ,
74
74
"missing_sample_size"
75
75
]
76
- export_df = df [df ["timestamp" ] == date ].filter (items = EXPECTED_COLUMNS )
76
+ export_df = df [df ["timestamp" ] == date ].filter (items = expected_columns )
77
77
if remove_null_samples :
78
78
export_df = export_df [export_df ["sample_size" ].notnull ()]
79
79
export_df = export_df .round ({"val" : 7 , "se" : 7 })
You can’t perform that action at this time.
0 commit comments