Skip to content

DOC: Error in Getting started tutorials > How do I read and write tabular data? #61412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
paintdog opened this issue May 8, 2025 · 1 comment · Fixed by #61421
Closed
1 task done

DOC: Error in Getting started tutorials > How do I read and write tabular data? #61412

paintdog opened this issue May 8, 2025 · 1 comment · Fixed by #61421
Labels

Comments

@paintdog
Copy link

paintdog commented May 8, 2025

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/getting_started/intro_tutorials/02_read_write.html

Documentation problem

In the documentation for the Titanic dataset on this page:

https://pandas.pydata.org/docs/getting_started/intro_tutorials/02_read_write.html

It currently says:

"Survived: Indication whether passenger survived. 0 for yes and 1 for no."

This appears to be incorrect. The correct meaning is:

0 = did not survive
1 = survived

You can verify this, for example, with the entry for "McCarthy, Mr. Timothy J.", who is listed with a 0 in the dataset and was confirmed deceased (source: https://de.wikipedia.org/wiki/Passagiere_der_Titanic).

Thanks for your great work and for maintaining the documentation!

Suggested fix for documentation

Survived: Indication whether passenger survived. 0 for no and 1 for yes.

@paintdog paintdog added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels May 8, 2025
@arthurlw
Copy link
Member

arthurlw commented May 9, 2025

Thanks for catching this! The correct mapping is 0 = did not survive and 1 = survived.

@arthurlw arthurlw removed the Needs Triage Issue that has not been reviewed by a pandas team member label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants