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 can't plot the calendar with activity data exported
/usr/local/lib/python3.11/site-packages/stravavis/plot_calendar.py:11: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
activities['Activity Date'] = pd.to_datetime(activities['Activity Date'])
Traceback (most recent call last):
File "/Users/giulio/Documents/workspace/strava-plot/main.py", line 11, in <module>
main()
File "/Users/giulio/Documents/workspace/strava-plot/main.py", line 7, in main
plot_calendar(activities, year_min=2015, year_max=2022, max_dist=80,
File "/usr/local/lib/python3.11/site-packages/stravavis/plot_calendar.py", line 24, in plot_calendar
fig, ax = calmap.calendarplot(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/calmap/__init__.py", line 403, in calendarplot
yearplot(by_day, year=year, how=None, ax=ax, **kwargs)
File "/usr/local/lib/python3.11/site-packages/calmap/__init__.py", line 202, in yearplot
plot_data = by_day.pivot("day", "week", "data").values[::-1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DataFrame.pivot() takes 1 positional argument but 4 were given
I can't plot the calendar with activity data exported
the code
The text was updated successfully, but these errors were encountered: