October 2019
Beginner to intermediate
674 pages
16h 43m
English
The .ix operator accepts both label-based and position-based indexing and is considered to be a more generic version of the .loc and .iloc operators. Due to ambiguity, this operator is deprecated and will not be available in a future version. Hence, it is advised not to use the .ix operator. Let's get an understanding of the .ix operator.
Here, the row index is label-based and the column index is position-based:
df_loc2.ix["2012":"2014", 0:2]

Read now
Unlock full access