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
When feeding plot_windrose with a DataFrame with columns: speed, direction, year_month, passing a parameter like by='year_month' should plot several plots on same figure (subplots).
by = 'year_month' # same as 'month' or 'year'
df[by] = df.index.map(lambda dt: (dt.year, dt.month))
When feeding
plot_windrose
with a DataFrame with columns: speed, direction, year_month, passing a parameter likeby='year_month'
should plot several plots on same figure (subplots).similar to http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.hist.html
https://github.com/pydata/pandas/blob/39d567ec0fcbcaa75d531657412e61f3f274931a/pandas/tools/plotting.py
So it will help to show if major direction of wind (for example) changed over the time.
An other interesting feature could be to animate plot.
see https://github.com/scls19fr/windrose/issues/11
http://nbviewer.ipython.org/github/scls19fr/windrose/blob/master/windrose_sample_poitiers_csv.ipynb
Run unit test using
The text was updated successfully, but these errors were encountered: