Pandas for LibreOffice
Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.&
latest release: 2025-01-08 02:31:59
Description
Example Usage:
# using OooDev to for easy access to LibreOffice import pandas as pd from ooodev.dialog.msgbox import MsgBox, MessageBoxType from ooodev.macro.macro_loader import MacroLoader from ooodev.office.calc import Calc from ooodev.utils.info import Info from ooodev.utils.lo import Lo def _do_work() -> None: # make sure we are working on a Calc Spreadsheet doc = Lo.XSCRIPTCONTEXT.getDocument() if not Info.is_doc_type(doc_type=Lo.Service.CALC, obj=doc): MsgBox.msgbox( msg="Not a Calc document", title="Error", boxtype=MessageBoxType.ERRORBOX, ) return # create a data frame and add some data to it. df = pd.DataFrame() df["Name"] = ["Anil", "Raju", "Arun"] df["Age"] = ["32", "34", "45"] data = (("Name", "Age"),) # Column names # convert data frame values into something that Calc can use. data += tuple(df.itertuples(index=False, name=None)) sheet = Calc.get_active_sheet() # set the data starting at cell A1 Calc.set_array(values=data, sheet=sheet, name="A1") def demo(*args) -> None: with MacroLoader(): # using MacroLoader so we can use OooDev in macros _do_work() g_exportedScripts = (demo,)
FAQ
Answer
The short answer is no. If you are using LibrePythonista extension then Pandas will be automatically installed with it. It will not show up as an extension; However, the python package pandas is installed which is what the extension installs.
Answer
Pandas is uninstalled as an extension it does not automatically uninstall pandas Python files. This is a feature and not a bug. To remove the python files Open the extension manager. Choose options for Pandas, Go to the uninstall section. Check to box for Pandas and Odfpy, click the Uninstall button. Next Uninstall the extension for complete removal. Note that if the python files are removed without removing the extension then the python files will be automatically installed again on next restart of LibreOffice.
Note
Known Issues
Issues
Homepage: https://github.com/Amourspirit/python-libreoffice-pandas-ext#readme
Repository: https://github.com/Amourspirit/python-libreoffice-pandas-ext
Release | Description | Compatibility | Operating Systems | License | Release notes | Updated | |
---|---|---|---|---|---|---|---|
2.2.0 | 2.2.0 Update | 7.0 | Linux, Windows, macOS | MIT | It now possible to uninstall pandas python files from Extension Options. | 2025-01-06 15:08:26 | Download |
2.1.1 | 2.1.1 update | 7.0 | Linux, Windows, macOS | MIT | Fixed issue for last update not always installing on Windows. | 2025-01-03 21:10:06 | Download |
2.1.0 | 2.1.0 Update | 7.0 | Linux, Windows, macOS | MIT | Fine tuning for changing Pandas Version. | 2025-01-03 15:35:31 | Download |
2.0.0 | 2.0.0 Update | 7.0 | Linux, Windows, macOS | MIT | This release enables the option to change the Pandas installed version. This is done in the options for the extension. Installing OOO Development Tools (OooDev) has been removed from this extension. OOO Development Tools is available as a separate extension. |
2024-12-26 20:28:36 | Download |
1.0.5 | 1.0.5 update | 7.0 | Linux, Windows, macOS | MIT | 1.0.5 Update. Flatpak install fix. | 2024-02-21 00:04:29 | Download |
1.0.3 | Better install error handling during install. | 7.0 | Linux, Windows, macOS | MIT | Better install error handling during install. Update to OooDev (0.15.0) |
2023-12-04 20:47:35 | Download |
1.0.0 | Initial Release | 7.0 | Linux, Windows, macOS | MIT | Initial Release | 2023-10-27 18:27:04 | Download |
★ ★ ★ ★ ★
Post your review
You cannot post reviews until you have logged in. Login Here.
Reviews
zz zz Mar 23, 2024, 3:50 PM (10 months ago)
★ ★ ★ ★ ★
Nice addon, maked me save a lot of time with the bz2 error. If you are having bz2 error using pandas just install this extension and everything will work fine.
A big thank you to the developper !
No one has commented on this page yet.
RSS feed for reviews on this page | RSS feed for all reviews