Skip to content

Commit 1214e70

Browse files
committed
Update pull_historic.py
1 parent 901b2fe commit 1214e70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/acquisition/rvdss/pull_historic.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,12 @@ def create_detections_table(table,modified_date,week_number,week_end_date,start_
237237

238238
def create_number_detections_table(table,modified_date,start_year):
239239
week_columns = table.columns.get_indexer(table.columns[~table.columns.str.contains('week')])
240-
table = table.apply(lambda x: x.replace(r'\s', '', regex=True).astype('int'))
241240

242241
for index in week_columns:
243242
new_name = abbreviate_virus(table.columns[index]) + " positive_tests"
244243
table.rename(columns={table.columns[index]: new_name}, inplace=True)
244+
table[table.columns[index]] = table[table.columns[index]].replace(r'\s', '', regex=True).astype('int')
245+
245246

246247
if "week end" not in table.columns:
247248
week_ends = [get_report_date(week,start_year) for week in table["week"]]

0 commit comments

Comments
 (0)