This is my code right now
df = df2016.nlargest(3,['Snow Mean'])
df.to_csv('top3.csv')
However, I am getting duplicated locations with this code, because all my top snow is from the same location, this code is only giving me one location three times.
Here is my data. On the image, the second column is the location and the last column is snow. I want my code to store Grand Rapids 2.5 ENE, and Grand Rapids 4.6 ESE as top 2 but my code is storing all top 3's the same location. I also tried dropping duplicates but it didn't work. How can I find the top 3 without duplicates?