« first day (2537 days earlier)      last day (804 days later) » 

3:48 PM
Hey all! I have a value over like 100 years, and I want to get the minimum value for each single year in my pandas DF. Do you know how I can do this? The df is like: years from 1900-2020, and the value = total damage in USD... Thank you!
 
4:10 PM
1 message moved from Python
 
4:40 PM
I tried: new = df[['Year', 'Total_Damages_Adjusted']].copy()



new.groupby(['Year', 'Total_Damages_Adjusted']).min()


But this doesn`t give me the minimal total damage per each single year..
 
1 message moved from Python
 

« first day (2537 days earlier)      last day (804 days later) »