Mixed indexing with the .ix operator

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]

Mixed indexing with .ix in a DataFrame
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset