Skip to content

DOC: Reference Excel reader installation in the read and write tabular data tutorial #58261

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

Merged
merged 4 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ SciPy 1.10.0 computation Miscellaneous stati
xarray 2022.12.0 computation pandas-like API for N-dimensional data
========================= ================== =============== =============================================================

.. _install.excel_dependencies:

Excel files
^^^^^^^^^^^

Expand Down
6 changes: 6 additions & 0 deletions doc/source/getting_started/intro_tutorials/02_read_write.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ strings (``object``).

My colleague requested the Titanic data as a spreadsheet.

.. note::
If you want to use :func:`~pandas.to_excel` and :func:`~pandas.read_excel`,
you need to install an Excel reader as outlined in the
:ref:`Excel files <install.excel_dependencies>` section of the
installation documentation.

.. ipython:: python

titanic.to_excel("titanic.xlsx", sheet_name="passengers", index=False)
Expand Down