xlPandas
Read and write Excel xlsx using pandas/openpyxl without destroying formatting.
Sometimes you have a nicely formatted worksheet, but you'd like to work with it using pandas, or perhaps you want to write data to an Excel template.
Pandas can read and write Excel files using xlrd, but treats them like csvs.
xlPandas uses openpyxl to access data
while preserving template formatting, macros, and other worksheet attributes.
Install
pip install xlpandas
Example
import xlpandas as xpd
# Read excel file
df = xpd.read_file('template.xlsx', skiprows=2)
print(df.columns)
# Modify dataframe
df['new_column'] = True
# Access openpyxl worksheet
sheet = df.to_sheet()
sheet.cell(1,1).value = 'title'
# From openpyxl worksheet
df = xpd.xlDataFrame(sheet)
# Write file
df.to_file('out.xlsx')
Metadata
Release files for xlpandas 0.1.4
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 |
|---|---|---|---|---|
| xlpandas-0.1.4.tar.gz | 3.0 kB | Without provenance | Details for xlpandas-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xlpandas-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for xlpandas-0.1.4-py3-none-any.whl |
Total release size: 7.1 kB
Release files / xlpandas-0.1.4.tar.gz
| Download URL | xlpandas-0.1.4.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e047d99c119f3896720a925e0464e1521925bccf7cb9ba68448e63cb74a1e5c0
|
|
BLAKE2b-256 checksum How to use checksums |
831fdae3a1bcd8b7fe2c7e36c22b3d4331ce0e45b4ea3f95965189baed2d64b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|
Release files / xlpandas-0.1.4-py3-none-any.whl
| Download URL | xlpandas-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d27c6d475feca524bef2634183f3ccea2d00c34fca2dd75aec1f04512f7d51b5
|
|
BLAKE2b-256 checksum How to use checksums |
f2e19dadc1e85af6c664eb4d96b037f9e4cd519424dd454cfcb6a961c2d94448
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|
Security for xlpandas 0.1.4
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.