From 409a43027445cd9ddddeabbd7b88c65f1dd6c850 Mon Sep 17 00:00:00 2001 From: Jennifer Benson <36428713+jmbenson@users.noreply.github.com> Date: Sun, 14 Apr 2024 21:46:05 -0700 Subject: [PATCH 1/4] Added note about Excel reader Created a link to the Excel file recommended installation section and referenced it in the read and write tutorial --- doc/source/getting_started/install.rst | 2 ++ .../getting_started/intro_tutorials/02_read_write.rst | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index 3cd9e030d6b3c..cf5f15ceb8344 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -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 ^^^^^^^^^^^ diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index ae658ec6abbaf..dd0c5c99302f0 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -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:`recommended dependencies ` section of the + installation documentation. + .. ipython:: python titanic.to_excel("titanic.xlsx", sheet_name="passengers", index=False) From 21903be5dc6f57d1d4fb7c6a6dc9b9a74dd4edce Mon Sep 17 00:00:00 2001 From: Jennifer Benson <36428713+jmbenson@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:17:25 -0700 Subject: [PATCH 2/4] remove trailing whitespace --- doc/source/getting_started/intro_tutorials/02_read_write.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index dd0c5c99302f0..3325da323b4b0 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -113,7 +113,7 @@ 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 + you need to install an Excel reader as outlined in the :ref:`recommended dependencies ` section of the installation documentation. From 60fe88e8885918814efeb58385baaa34cbdef0e4 Mon Sep 17 00:00:00 2001 From: Jennifer Benson <36428713+jmbenson@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:19:24 -0700 Subject: [PATCH 3/4] Update 02_read_write.rst --- doc/source/getting_started/intro_tutorials/02_read_write.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 3325da323b4b0..34881300f6cea 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -114,7 +114,7 @@ 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:`recommended dependencies ` section of the + :ref:`Excel files ` section of the installation documentation. .. ipython:: python From 582d4d12175ece8ec0c38d3f12d9ac02e3b15944 Mon Sep 17 00:00:00 2001 From: Jennifer Benson <36428713+jmbenson@users.noreply.github.com> Date: Sun, 14 Apr 2024 22:38:45 -0700 Subject: [PATCH 4/4] Update 02_read_write.rst --- doc/source/getting_started/intro_tutorials/02_read_write.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 34881300f6cea..aa032b186aeb9 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -112,9 +112,9 @@ 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`, + 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 ` section of the + :ref:`Excel files ` section of the installation documentation. .. ipython:: python