Skip to content
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

Write functions #133

Open
oliviercailloux opened this issue Dec 29, 2023 · 0 comments
Open

Write functions #133

oliviercailloux opened this issue Dec 29, 2023 · 0 comments

Comments

@oliviercailloux
Copy link

oliviercailloux commented Dec 29, 2023

The following code shows the string "=1 + 1" in the ODS file (after opening with LibreOffice Calc), whereas it correctly shows 2 in the XLSX file (after opening with the same version of LibreOffice Calc).

import pandas as pd

pd.Series(["=1 + 1"]).to_excel("test.xlsx")
pd.Series(["=1 + 1"]).to_excel("test.ods")

Perhaps it makes sense to consider that the python string "=1 + 1" should be written to the spreadsheet as a string (that is, as-is) instead of as a function call, but then this should happen in xlsx as well. And user should be given some way of writing a function call.

Otherwise, please make the function call work in ODS as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant