Select Data From DataFrame
Let's see how to select data from the DataFrame object.
In Index lesson, we have already learned how to use label based indexing with loc
, which can index both rows and columns. If you only have to filter rows, a simpler alternative is to use query()
. However, []
is also commonly ...