Skip to content

Commit e1752c8

Browse files
authored
DOC: Reference Excel reader installation in the read and write tabular data tutorial (#58261)
* Added note about Excel reader Created a link to the Excel file recommended installation section and referenced it in the read and write tutorial * remove trailing whitespace * Update 02_read_write.rst * Update 02_read_write.rst
1 parent a64ff48 commit e1752c8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/source/getting_started/install.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@ SciPy 1.10.0 computation Miscellaneous stati
269269
xarray 2022.12.0 computation pandas-like API for N-dimensional data
270270
========================= ================== =============== =============================================================
271271

272+
.. _install.excel_dependencies:
273+
272274
Excel files
273275
^^^^^^^^^^^
274276

doc/source/getting_started/intro_tutorials/02_read_write.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ strings (``object``).
111111

112112
My colleague requested the Titanic data as a spreadsheet.
113113

114+
.. note::
115+
If you want to use :func:`~pandas.to_excel` and :func:`~pandas.read_excel`,
116+
you need to install an Excel reader as outlined in the
117+
:ref:`Excel files <install.excel_dependencies>` section of the
118+
installation documentation.
119+
114120
.. ipython:: python
115121
116122
titanic.to_excel("titanic.xlsx", sheet_name="passengers", index=False)

0 commit comments

Comments
 (0)