Skip to content

Commit 287af33

Browse files
committed
Server: add PANDAS_DTYPES to model.py
1 parent f264325 commit 287af33

File tree

1 file changed

+22
-0
lines changed
  • src/server/endpoints/covidcast_utils

1 file changed

+22
-0
lines changed

src/server/endpoints/covidcast_utils/model.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,28 @@
99
from ..._params import SourceSignalPair
1010

1111

12+
PANDAS_DTYPES = {
13+
"source": str,
14+
"signal": str,
15+
"time_type": str,
16+
"time_value": "Int64",
17+
"geo_type": str,
18+
"geo_value": str,
19+
"value": float,
20+
"stderr": float,
21+
"sample_size": float,
22+
"missing_value": "Int8",
23+
"missing_stderr": "Int8",
24+
"missing_sample_size": "Int8",
25+
"issue": "Int64",
26+
"lag": "Int64",
27+
"id": "Int64",
28+
"direction": "Int8",
29+
"direction_updated_timestamp": "Int64",
30+
"value_updated_timestamp": "Int64",
31+
}
32+
33+
1234
class HighValuesAre(str, Enum):
1335
bad = "bad"
1436
good = "good"

0 commit comments

Comments
 (0)