Python iloc, loc, ix Data Retrieving Selection Functions
Pandas iloc, loc, and ix functions are very powerful ways to quickly select data from your dataframe. Today , we take a quick look at these 3 functions. Credits to Data School, you can check him out in Youtube In [1]:
|
1 |
import pandas as pd |
In [2]:
|
1 2 |
#lets get this public dataset and play with it ufo = pd.read_csv('http://bit.ly/uforeports') |
In [3]:
|
1 2 |
#lets examine the head ufo.head() |
Out[3]: City Colors Reported Shape Reported State…
