init
This commit is contained in:
commit
4d449f5333
10 files changed
+176
No files matched your search
@@ -0,0 +1,12 @@
|
||||
from . import weather
|
||||
|
||||
wapi = weather.OpenMeteo() # Weather API
|
||||
|
||||
def get_high_low() -> str:
|
||||
|
||||
weather_dataframe = wapi.get_weather()
|
||||
|
||||
high = round(weather_dataframe.max(axis=0)['temperature_2m'])
|
||||
low = round(weather_dataframe.min(axis=0)['temperature_2m'])
|
||||
|
||||
return f'The high today is {high}, and the low is {low}.'
|
||||
Reference in new issue
Block a user