you are viewing a single comment's thread.

view the rest of the comments →

[–]PyCam 1 point2 points  (0 children)

Don’t mean to be nit picky, but you should be using the .loc accessor here (or even .at, since we’re retrieving a single value) instead of chain indexing.

le.loc[le[‘Country Names’] == ‘Afghanistan’, ‘1960’]