How do I select rows from a DataFrame based on column values?
Asked 07 September, 2021
Viewed 1.3K times
  • 53
Votes

How can I select rows from a DataFrame based on values in some column in Pandas?

In SQL, I would use:

SELECT *
FROM table
WHERE colume_name = some_value

I tried to look at Pandas' documentation, but I did not immediately find the answer.

11 Answer