Skip to content

Commit 58b4e55

Browse files
committed
Date as string in tables
1 parent d2e0401 commit 58b4e55

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

e2e/cypress/integration/tests/steppers.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ context('Increment steppers', () => {
3030
cy.get('input.st-al').eq(1)
3131
.should('has.value', '15.1');
3232

33-
cy.contains('Hospitalized Admissions peaks at 303');
33+
cy.contains('Hospitalized Admissions peaks at 302');
3434
});
3535

3636
it('Increment doubling time', () => {
@@ -44,6 +44,6 @@ context('Increment steppers', () => {
4444
cy.get('input.st-al').eq(3)
4545
.should('has.value', '4.25');
4646

47-
cy.contains('Hospitalized Admissions peaks at 273');
47+
cy.contains('Hospitalized Admissions peaks at 274');
4848
});
4949
});

src/penn_chime/charts.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,5 +157,6 @@ def build_table(
157157
modulo: int = 1,
158158
) -> pd.DataFrame:
159159
table_df = df[np.mod(df.day, modulo) == 0].copy()
160+
table_df.date = table_df.date.dt.strftime(DATE_FORMAT)
160161
table_df.rename(labels)
161162
return table_df

0 commit comments

Comments
 (0)