pydata-book icon indicating copy to clipboard operation
pydata-book copied to clipboard

column name "pop"

Open codeandstats opened this issue 1 year ago • 1 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

codeandstats avatar May 03 '23 14:05 codeandstats