Skip to content

Commit

Permalink
use sorted dataframe by wind direction to create accurately ordered w…
Browse files Browse the repository at this point in the history
…ind rose
  • Loading branch information
ashen007 committed Jul 8, 2021
1 parent b5c2d9c commit 333ad18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/analysis_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def update_pressure3pm(location, year):
Input('year', 'value'))
def update_windGraph(location, year):
temp = data[(data['Location'] == location) & (data['Year'] == year)]
temp = temp.sort_values(by='sort_dir')

wind_rose = px.bar_polar(temp,
theta='WindGustDir',
Expand Down
Binary file modified data/aus_weather_cln_without_encoding.pkl
Binary file not shown.

0 comments on commit 333ad18

Please sign in to comment.