Pandas pivot warning about repeated entries on index

As far as I can tell with updates to pandas, you have to use pivot_table() instead of pivot().

pandas.pivot_table(df,values="count",index='site_id',columns="week")

Leave a Comment