Answers for "pandas : stratification (mean)"

0

pandas : stratification (mean)

# STRATIFICHIAMO : per ogni anno, ciascun continente deve avere la sua media 'lifeExp' e 'gdpPercap'
print(df.groupby(['year', 'continent'])[['lifeExp', 'gdpPercap']].mean())
Posted by: Guest on January-20-2022

Python Answers by Framework

Browse Popular Code Answers by Language