pandas_ods_reader
Provides a function to read in an ODS file and return a pandas DataFrame.
It uses ezodf to read in the ods file. If a range is specified in the sheet
to be imported, it seems that ezodf imports empty cells as well. Therefore,
completely empty rows and columns are dropped from the DataFrame, before it is
returned. Only trailing empty rows and columns are dropped.
Dependencies
ezodflxmlpandas
Installation
pip install pandas_read_ods
Usage
from pandas_ods_reader import read_ods
path = "path/to/file.ods"
# load a sheet based on its index (1 based)
sheet_idx = 1
df = read_ods(path, sheet_idx)
# load a sheet based on its name
sheet_name = "sheet1"
df = read_ods(path, sheet_name)
# load a file that does not contain a header row
# if no columns are provided, they will be numbered
df = read_ods(path, 1, headers=False)
# load a file and provide custom column names
# if headers is True (the default), the header row will be overwritten
df = read_ods(path, 1, columns=["A", "B", "C"])
Metadata
Release files for pandas-ods-reader 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pandas_ods_reader-0.0.6.tar.gz | 4.1 kB | Without provenance | Details for pandas_ods_reader-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandas_ods_reader-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for pandas_ods_reader-0.0.6-py3-none-any.whl |
Total release size: 10.8 kB
Release files / pandas_ods_reader-0.0.6.tar.gz
| Download URL | pandas_ods_reader-0.0.6.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d85ef58fc3aeac1616028d22954b6ef2e8983ab9bae015e1e90ce3979d138553
|
|
BLAKE2b-256 checksum How to use checksums |
740be3e5eb8a794c5606102e6484f15654cc86898eafe5c4b9ce13e9a5aa56ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Release files / pandas_ods_reader-0.0.6-py3-none-any.whl
| Download URL | pandas_ods_reader-0.0.6-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f7d510639c8957a06aa1227b9f84d1be47a437dfd306464ce803b91cf5eeec4
|
|
BLAKE2b-256 checksum How to use checksums |
7b6a2e3d7597c5e13791182dc8637e396d131df8214b4d641f50333515257a78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
|
Security for pandas-ods-reader 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.