@@ -143,35 +143,6 @@ def df(
143
143
r = self .json (fields , disable_date_parsing = disable_date_parsing )
144
144
return self ._as_df (r , fields , disable_date_parsing = disable_date_parsing )
145
145
146
- def csv (self , fields : Optional [Iterable [str ]] = None ) -> str :
147
- """Request and parse epidata in CSV format"""
148
- if self .only_supports_classic :
149
- raise OnlySupportsClassicFormatException ()
150
- self ._verify_parameters ()
151
- response = self ._call (EpiDataFormatType .csv , fields )
152
- response .raise_for_status ()
153
- return response .text
154
-
155
- def iter (
156
- self ,
157
- fields : Optional [Iterable [str ]] = None ,
158
- disable_date_parsing : Optional [bool ] = False ,
159
- ) -> Generator [Mapping [str , Union [str , int , float , date , None ]], None , Response ]:
160
- """Request and streams epidata rows"""
161
- if self .only_supports_classic :
162
- raise OnlySupportsClassicFormatException ()
163
- self ._verify_parameters ()
164
- response = self ._call (EpiDataFormatType .jsonl , fields , stream = True )
165
- response .raise_for_status ()
166
- for line in response .iter_lines ():
167
- yield self ._parse_row (loads (line ), disable_date_parsing = disable_date_parsing )
168
- return response
169
-
170
- def __iter__ (
171
- self ,
172
- ) -> Generator [Mapping [str , Union [str , int , float , date , None ]], None , Response ]:
173
- return self .iter ()
174
-
175
146
176
147
class EpiDataContext (AEpiDataEndpoints [EpiDataCall ]):
177
148
"""
0 commit comments