You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSV_URL="https://raw.githubusercontent.com/datasets/covid-19/main/data/countries-aggregated.csv"# Fetch CSV data using httpxwithhttpx.Client() asclient:
response=client.get(CSV_URL)
response.raise_for_status() # Raise an error for bad responses# Convert the response text into a Pandas DataFramedf=pd.read_csv(io.StringIO(response.text))
# Perform some basic data cleaningdf['Date'] =pd.to_datetime(df['Date'])
this should also not happen:
UserWarning: Discarding nonzero nanoseconds in conversion.
return x.to_pydatetime().replace(tzinfo=None).isoformat()
The text was updated successfully, but these errors were encountered:
example to replicate
this should also not happen:
The text was updated successfully, but these errors were encountered: