Select Data From DataFrame
Let's see how to select data from the DataFrame object.
We'll cover the following
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 used in addition to query()
.
Get hands-on with 1400+ tech skills courses.