Skip to content

How do I read and write tabular data? #58246

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
Devansh2290 opened this issue Apr 13, 2024 · 2 comments · Fixed by #58261
Closed
1 task done

How do I read and write tabular data? #58246

Devansh2290 opened this issue Apr 13, 2024 · 2 comments · Fixed by #58261
Assignees
Labels

Comments

@Devansh2290
Copy link

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

Hi,
I have just started learning about pandas with "Getting Started tutorials". On the "How do I read and write tabular data?" tutorial when I ran the command got an unexpected error and no suggestion was provided there to solve this issue. The command and error are as follows:

Command: titanic.to_excel('titanic.xlsx', sheet_name='Passengers', index=False)

Error: ModuleNotFoundError: No module named 'openpyxl'

I solved the issue by installing openpyxl using pip with pip install openpyxl.

If this is an essential package for the tutorial, it should be mentioned in the document, so I'm creating this ticket.

Suggested fix for documentation

There should be a note in the document with the install command or it should be there as a step before reaching that point as a required step to following the tutorial.

@Devansh2290 Devansh2290 added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Apr 13, 2024
@rhshadrach rhshadrach added IO Excel read_excel, to_excel and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Apr 13, 2024
@rhshadrach
Copy link
Member

rhshadrach commented Apr 13, 2024

Thanks for the report. Agreed a line about installing an Excel reader would be a good improvement. I recommend it link to the installation instructions:

https://pandas.pydata.org/docs/getting_started/install.html#excel-files

@jmbenson
Copy link
Contributor

take

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.

3 participants