Skip to content

DOC: Add pip install odfpy for io.rst #50498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 30, 2022
Merged

Conversation

luke396
Copy link
Contributor

@luke396 luke396 commented Dec 30, 2022

Fixes #50487

Perhaps because of my misunderstanding, adding 'pip install' here may not be consistent with the previous docs style. Because there is no direct instruction in the previous docs how to install the engine manually.

@@ -3833,7 +3833,7 @@ OpenDocument Spreadsheets
The io methods for `Excel files`_ also support reading and writing OpenDocument spreadsheets
using the `odfpy <https://pypi.org/project/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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's sufficient if you add a comment that users have to install the optional dependency oddly, pip install is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I replaced it with a comment, and this time?

@@ -3840,6 +3840,7 @@ The :func:`~pandas.read_excel` method can read OpenDocument spreadsheets
.. code-block:: python

# Returns a DataFrame
# package 'odfpy' is required
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add The optional dependency 'odfpy' needs to be installed in line 3836

@phofl phofl added this to the 2.0 milestone Dec 30, 2022
@phofl phofl added Docs IO Excel read_excel, to_excel labels Dec 30, 2022
@phofl phofl merged commit 42b0b7a into pandas-dev:main Dec 30, 2022
@phofl
Copy link
Member

phofl commented Dec 30, 2022

thx @luke396

@luke396 luke396 deleted the luke396/issue50487 branch December 31, 2022 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs IO Excel read_excel, to_excel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: IO tools OpenDocument spreadsheets har wrong information on missing implementation for writing ODF-files
2 participants