Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Commit

Permalink
Fix for LACDPH n/a values
Browse files Browse the repository at this point in the history
  • Loading branch information
xander-hirsch committed Oct 3, 2021
1 parent ce20f18 commit 24ad6d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 0 additions & 5 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/bin/bash
if [[ $1 = 'fetch' ]]
then
echo "Fetching LA Times dataset and parsing sources..."
# bash fetch-latimes-place-totals.sh && bash parse-sources.sh
fi
NAME='ca-local-covid-19-dashboard'
docker buildx build --platform linux/amd64 --tag $NAME . \
&& docker tag $NAME "registry.heroku.com/$NAME/web" \
Expand Down
6 changes: 4 additions & 2 deletions import-lacdph.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
]

dph_last_day = df_dph_7day[EP_DATE].max() - pd.Timedelta(7, 'days')
df_dph_7day = df_dph_7day[(df_dph_7day[EP_DATE].notna()) &
df_dph_7day = df_dph_7day[(df_dph_7day['geo_merge'].notna()) &
(df_dph_7day[EP_DATE].notna()) &
(df_dph_7day[EP_DATE] <= dph_last_day)].copy()
df_dph_14day = df_dph_14day[(df_dph_14day[EP_DATE].notna()) &
df_dph_14day = df_dph_14day[(df_dph_14day['geo_merge'].notna()) &
(df_dph_14day[EP_DATE].notna()) &
(df_dph_14day[EP_DATE] <= dph_last_day)].copy()

for df in df_dph_7day, df_dph_14day:
Expand Down

0 comments on commit 24ad6d4

Please sign in to comment.