From 57c1a089dde139e86478e5314f964f46989795db Mon Sep 17 00:00:00 2001 From: luke <2736230899@qq.com> Date: Fri, 30 Dec 2022 12:06:19 +0800 Subject: [PATCH 1/3] DOC: Add `pip install odfpy` for io.rst Fixes #50487 --- doc/source/user_guide/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 677be7bf29479..9c72d547958da 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3833,7 +3833,7 @@ OpenDocument Spreadsheets The io methods for `Excel files`_ also support reading and writing OpenDocument spreadsheets using the `odfpy `__ module. The semantics and features for reading and writing OpenDocument spreadsheets match what can be done for `Excel files`_ using -``engine='odf'``. +``engine='odf'``. ``pip install odfpy`` may be required, if is not already installed. The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets From c34ef35beefb5ac6a68e7e53334eaee919b4367b Mon Sep 17 00:00:00 2001 From: luke <2736230899@qq.com> Date: Fri, 30 Dec 2022 18:51:49 +0800 Subject: [PATCH 2/3] add comment --- doc/source/user_guide/io.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 9c72d547958da..615fdb810a3fd 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3833,13 +3833,14 @@ OpenDocument Spreadsheets The io methods for `Excel files`_ also support reading and writing OpenDocument spreadsheets using the `odfpy `__ module. The semantics and features for reading and writing OpenDocument spreadsheets match what can be done for `Excel files`_ using -``engine='odf'``. ``pip install odfpy`` may be required, if is not already installed. +``engine='odf'``. The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets .. code-block:: python # Returns a DataFrame + # package 'odfpy' is required pd.read_excel("path_to_file.ods", engine="odf") .. versionadded:: 1.1.0 From ee4ed91a259c75bb098c96b731153c0f5e9cecf2 Mon Sep 17 00:00:00 2001 From: luke <2736230899@qq.com> Date: Fri, 30 Dec 2022 19:55:35 +0800 Subject: [PATCH 3/3] more readable --- doc/source/user_guide/io.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 615fdb810a3fd..6e47ec4e4aa03 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3833,14 +3833,13 @@ OpenDocument Spreadsheets The io methods for `Excel files`_ also support reading and writing OpenDocument spreadsheets using the `odfpy `__ module. The semantics and features for reading and writing OpenDocument spreadsheets match what can be done for `Excel files`_ using -``engine='odf'``. +``engine='odf'``. The optional dependency 'odfpy' needs to be installed. The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets .. code-block:: python # Returns a DataFrame - # package 'odfpy' is required pd.read_excel("path_to_file.ods", engine="odf") .. versionadded:: 1.1.0