Hi, In the section: “How do I select specific rows and columns from a DataFrame? In the following snippet the value 3 means 4th column.: In [26]: titanic.iloc[0:3, 3] = "anonymous" But in the sentence “When selecting specific rows and/or columns with loc or iloc, new values can be assigned to the selected data. For example, to assign the name anonymous to the first 3 elements of the third column:” . The word highlighted in bold talks about 3rd column. Please correct it. Thank you. Best Regards, Bhavani Shankar. Ref: How do I select a subset of a DataFrame? — pandas 2.0.1 documentation (pydata.org)<https://pandas.pydata.org/docs/getting_started/intro_tutorials/03_subset_dat...>
Thanks for the report Bhavani. Do you mind sending the report via a GitHub issue? That way it's easier for us to get it assigned to someone and fix it: https://github.com/pandas-dev/pandas/issues/new/choose Thank you! On Wed, May 24, 2023, 15:13 Bhavani Shankar <bhasha03@outlook.com> wrote:
Hi,
In the section: *“How do I select specific rows and columns from a **DataFrame**?*
In the following snippet the value * 3* means 4th column.:
*In [26]: titanic.iloc[0:3, 3] = "anonymous"*
But in the sentence “When selecting specific rows and/or columns with loc or iloc, new values can be assigned to the selected data. For example, to assign the name anonymous to the first 3 elements of the *third* column:” . The word highlighted in bold talks about 3rd column. Please correct it. Thank you.
Best Regards,
Bhavani Shankar.
Ref: How do I select a subset of a DataFrame? — pandas 2.0.1 documentation (pydata.org) <https://pandas.pydata.org/docs/getting_started/intro_tutorials/03_subset_dat...> _______________________________________________ Pandas-dev mailing list Pandas-dev@python.org https://mail.python.org/mailman/listinfo/pandas-dev
participants (2)
-
Bhavani Shankar -
Marc Garcia