# Make a new column with unemployment rate as a float, rather than a formatted string with % symbol
df['Unemployment Rate float'] = df['Unemployed'] / df['Labor Force']
# Group by year, and get the mean of the "unemployment rate float" column
df.groupby('Year').mean()['Unemployment Rate Float']
如果您的数据帧被称为
df
:我可以推荐^{} tour 吗?你知道吗
相关问题 更多 >
编程相关推荐