On my computer this code works, but on share.streamlit.io it gives me an error.
AttributeError: ‘DatetimeProperties’ object has no attribute ‘isocalendar’
If I leave it out, on my computer this warning is shown
FutureWarning: Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead.