Skip to content

Commit a6b91fb

Browse files
jmbensonpmhatre1
authored andcommitted
DOC: Reference Excel reader installation in the read and write tabular data tutorial (pandas-dev#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 0c7abd0 commit a6b91fb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

doc/source/getting_started/install.rst

+2
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

+6
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)