python-novice-gapminder icon indicating copy to clipboard operation
python-novice-gapminder copied to clipboard

add transpose + drop to episode 07 reading other data challenge describe

Open alee opened this issue 4 years ago • 0 comments

In the challenge https://swcarpentry.github.io/python-novice-gapminder/07-reading-tabular/index.html#reading-other-data

might be useful to cover dropping the continent column before transposing it and describing the dataset to get summary statistics for each country e.g.,

americas.drop(columns=['continent']).T.describe()

(credit to Gil Speyer for demonstrating this during a recent workshop)

alee avatar Aug 16 '21 23:08 alee