wesm / pydata-book

Materials and IPython notebooks for "Python for Data Analysis" by Wes McKinney, published by O'Reilly Media
Other
22.27k stars 15.19k forks source link

column name "pop" #175

Open codeandstats opened 1 year ago

codeandstats commented 1 year ago

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