I asked a question last days and I got the accepted response for that. Here is the question,
But, the problem is that when I want to apply this code to a large dataframe, it gives me an error as ValueError: cannot handle a non-unique multi-index!. I've tried to check the index of my data frame by df.columns.value_counts() and as follow, all of the count for my dataframe is 1. my dataframe has 30 columns with 3000 rows. point_id, date, and Temperatures are columns.
Does anybody know how to solve this problem? Thank you so much.
