[Pandas-dev] Typo in the documentation

Bhavani Shankar bhasha03 at outlook.com
Thu May 18 11:04:08 EDT 2023


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_data.html>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pandas-dev/attachments/20230518/451690cb/attachment.html>


More information about the Pandas-dev mailing list