loc vs iloc: How to select rows and columns from a Pandas Dataframe

preview_player
Показать описание
Hi everyone! In this video, I'll explain the difference between the methods loc and iloc in Pandas. We'll compare them and see some examples with code.

--------------------
Content:
0:00 loc vs iloc
6:06 loc - examples with code
12:28 iloc - examples with code
Рекомендации по теме
Комментарии
Автор

That is an ideal explanation!. Thank you.

RuslanSkiraUkraine
Автор

Can we mix loc() and iloc()? For example, the column is the name and row is the position.

paulchan