How to select data in Pandas?

What are the different ways to select the rows and columns in pandas other than using loc and iloc?

2 Likes

Hi @sakshambaru28,

The documentation is the best place to understand all of the available options (for popular libraries):
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html

There was one more way .ix which is deprecated.

Best,
Sahil