Data-Driven-World / d2w_ml_notes

Notes for Data Driven World

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Week 8 - Use of .loc[]

simonperrault opened this issue · comments


You can also get some particular row by specifying its index.

You can also access the column using the .loc[index, column] method. In this method, you need to specify the labels of the index.

You do explain that we can use : at some point.
I would mention it here, and also mention that a particular column can be addressed by using its name, but that one can select all columns also by using :
Finally, it may be good to remind them of where this : comes from (lists)

@simonperrault thanks, I have tried to include some of your suggestions in the notes.