File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
from altair import Chart # type: ignore
6
6
import pandas as pd # type: ignore
7
+ import numpy as np
7
8
8
9
from .parameters import Parameters
9
10
from .utils import add_date_column
@@ -32,8 +33,15 @@ def new_admissions_chart(
32
33
x_kwargs = {"shorthand" : "day" , "title" : "Days from today" }
33
34
34
35
# TODO fix the fold to allow any number of dispositions
36
+
37
+ ceiled_admits = projection_admits .copy ()
38
+
39
+ ceiled_admits .hospitalized = np .ceil (ceiled_admits .hospitalized )
40
+ ceiled_admits .icu = np .ceil (ceiled_admits .icu )
41
+ ceiled_admits .ventilated = np .ceil (ceiled_admits .ventilated )
42
+
35
43
return (
36
- alt .Chart (projection_admits .head (plot_projection_days ))
44
+ alt .Chart (ceiled_admits .head (plot_projection_days ))
37
45
.transform_fold (fold = ["hospitalized" , "icu" , "ventilated" ])
38
46
.mark_line (point = True )
39
47
.encode (
You can’t perform that action at this time.
0 commit comments