Skip to content

Commit 3e7cd5e

Browse files
update io docs for OpenDocument Spreadsheets (#49792)
* update ODS docs * minor fix * fix again
1 parent 5e1b4b7 commit 3e7cd5e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

doc/source/user_guide/io.rst

+13-7
Original file line numberDiff line numberDiff line change
@@ -3827,22 +3827,28 @@ format of an Excel worksheet created with the ``to_excel`` method. Excellent ex
38273827
OpenDocument Spreadsheets
38283828
-------------------------
38293829

3830-
.. versionadded:: 0.25
3831-
3832-
The :func:`~pandas.read_excel` method can also read OpenDocument spreadsheets
3833-
using the ``odfpy`` module. The semantics and features for reading
3830+
The io methods for `Excel files`_ also support reading and writing OpenDocument spreadsheets
3831+
using the `odfpy <https://pypi.org/project/odfpy/>`__ module. The semantics and features for reading and writing
38343832
OpenDocument spreadsheets match what can be done for `Excel files`_ using
38353833
``engine='odf'``.
38363834

3835+
.. versionadded:: 0.25
3836+
3837+
The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets
3838+
38373839
.. code-block:: python
38383840
38393841
# Returns a DataFrame
38403842
pd.read_excel("path_to_file.ods", engine="odf")
38413843
3842-
.. note::
3844+
.. versionadded:: 1.1.0
38433845

3844-
Currently pandas only supports *reading* OpenDocument spreadsheets. Writing
3845-
is not implemented.
3846+
Similarly, the :func:`~pandas.to_excel` method can write OpenDocument spreadsheets
3847+
3848+
.. code-block:: python
3849+
3850+
# Writes DataFrame to a .ods file
3851+
df.to_excel("path_to_file.ods", engine="odf")
38463852
38473853
.. _io.xlsb:
38483854

0 commit comments

Comments
 (0)