We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ce75f commit 6ee3e9eCopy full SHA for 6ee3e9e
sir_complainsalot/delphi_sir_complainsalot/date_utils.py
@@ -1,3 +1,7 @@
1
+"""
2
+Utility for converting dates to a format accepted by epidata api.
3
4
+
5
from datetime import datetime
6
7
import pandas as pd
@@ -6,6 +10,7 @@
10
11
def _date_to_api_string(d: datetime, time_type: str = "day") -> str:
8
12
"""Convert a date object to a YYYYMMDD or YYYYMM string expected by the API."""
13
+ # pylint: disable=R1705
9
14
if time_type == "day":
15
return d.strftime("%Y%m%d")
16
elif time_type == "week":
0 commit comments