educative.io

Missing Example for pandas.DataFrame.ix

Example after this paragraph is the example for loc.

Now let’s look at the hybrid approach, ix . It’s just like the other two indexing options, except that we can use a mix of explicit and implicit indexes


Course: Grokking Data Science - Learn Interactively
Lesson: Pandas DataFrame Operations - Selection, Slicing, and Filtering - Grokking Data Science

Hi @Xavi,
Thank you for pointing out this. The ix is a hybrid of the other two approaches. However, ix indexer has been deprecated since Pandas version 0.20.0 and removed in later versions. In the newer versions of Pandas it is recommended to use explicit indexing with .loc or positional indexing with .iloc instead.

The lesson has been updated accordingly.
Thanks!