[Pandas-dev] Typo in the documentation

Marc Garcia garcia.marc at gmail.com
Wed May 24 11:46:41 EDT 2023


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 at 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_data.html>
> _______________________________________________
> Pandas-dev mailing list
> Pandas-dev at python.org
> https://mail.python.org/mailman/listinfo/pandas-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pandas-dev/attachments/20230524/6cf80e11/attachment-0001.html>


More information about the Pandas-dev mailing list