How to use loc and iloc for selecting data in Pandas
Pandas tips and tricks to help you get started with data analysis
Published in
8 min readMar 17, 2021
When it comes to select data on a DataFrame, Pandas loc
and iloc
are two top favorites. They are quick, fast, easy to read, and sometimes interchangeable.
In this article, we’ll explore the differences between loc
and iloc
, take a looks at…