wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

column name "pop"

codeandstats opened this issue · comments

Dear Wes,
thanks a lot for the wonderful textbook, especially the online version. Unbelievably helpful for teachers like myself.
Just a comment on the introductory example on dataframes in chapter 5:
I used this example just after teaching my students that they could freely choose between two ways of selecting columns, e.g. data.state or data["state"]. And of course, they applied the same logic to the column "pop" and ran into a host of error messages because of the built-in method .pop. Ironically, I built a quiz in the same lesson using the gapminder data, which also uses the unfortunate column name "pop".

So I would suggest to maybe change that column name to sth. less ambiguous?
Thx