diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst index 74440e83fb8ee..ced976f680885 100644 --- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst +++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst @@ -335,7 +335,7 @@ the name ``anonymous`` to the first 3 elements of the fourth column: .. ipython:: python titanic.iloc[0:3, 3] = "anonymous" - titanic..iloc[:, 3].head() + titanic.iloc[:5, 3] .. raw:: html