Skip to content

Commit

Permalink
Fix to CurrentDeltas to handle dates where there's no deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
sacundim committed Dec 1, 2023
1 parent 839d8e7 commit 0e8c89c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/src/covid_19_puerto_rico/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def fetch_data(self, athena, bulletin_dates):
'min_bulletin_date': min(bulletin_dates),
'max_bulletin_date': max(bulletin_dates)
})
return pd.melt(df, ["bulletin_date", "datum_date"]) \
.replace(0, np.nan)
return pd.melt(df, ["bulletin_date", "datum_date"])


class DailyDeltas(AbstractChart):
Expand Down

0 comments on commit 0e8c89c

Please sign in to comment.