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
I am trying to download some wind speed data and have some problems with the Hourly - not sure why it gives an error
AttributeError: 'datetime.datetime' object has no attribute 'upper' here is my code:
Import Meteostat library and dependencies
from datetime import datetime
import matplotlib.pyplot as plt
import pytz
from meteostat import Point, Hourly, Daily
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to download some wind speed data and have some problems with the Hourly - not sure why it gives an error
AttributeError: 'datetime.datetime' object has no attribute 'upper' here is my code:
Import Meteostat library and dependencies
from datetime import datetime
import matplotlib.pyplot as plt
import pytz
from meteostat import Point, Hourly, Daily
Set time period
start = datetime(2023, 12, 11, 0, 0)
end = datetime(2023, 12, 12, 23, 59)
Create Point for
sunshine = Point(30.0985, -90.91716, 2)
Chicago = datetime.now(pytz.timezone('US/Central'))
Get daily data for 2018
data = Hourly(sunshine, start, end, Chicago, True)
data = data.fetch()
Plot line chart including average, minimum and maximum temperature
data.plot(y=['wspd'])
plt.show()
On similar code gives me SSL error when using Daily() no idea about that either
Beta Was this translation helpful? Give feedback.
All reactions