Re-register Xlwt Writer
As the xlwt package is no longer maintained, the xlwt engine of pandas was removed in pull request DEPR: Remove xlwt #49296. And this pull request was merged since v0.2.0 .
But there are some legacy APIs that still only support older MS Excel 97/2000/XP/2003 XLS files.
This module contains xlwt engine copied from pandas v1.5.3 and re-register it when you import pandas_xlwt, eventually allow pandas versions above 2.0.0 output xls format file.
Due to the changes in other parts of pandas source code, xls extension will no longer recognized by pandas, You should specific engine="xlwt" when you write xls file.
import pandas_xlwt
df.to_excel(path, index=False, engine="xlwt")
MS Excel 97/2000/XP/2003 XLS file format is really out of date. While this code may still work today, there is no guarantee that this re-registration method will work in future versions of pandas.
Please update your API to support other file formats such as .csv, .tsv or .xlsx as soon as possible.
Metadata
Release files for pandas-xlwt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pandas_xlwt-0.1.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pandas_xlwt-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / pandas_xlwt-0.1.1.tar.gz
| Download URL | pandas_xlwt-0.1.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8aed23e8ae35ade394989e58c6a25d044bd0e0715fdf3296aff16fe12cfe4726
|
|
BLAKE2b-256 checksum How to use checksums |
f4cc828e13adc378af5ee338015eaefd4998c7d4bdea1462978c3628be87ccbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-73-generic
|
Release files / pandas_xlwt-0.1.1-py3-none-any.whl
| Download URL | pandas_xlwt-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0870b520e832810b6d01c4f11ac314a076000d94f6eaf6c07323e2f6b64e95a
|
|
BLAKE2b-256 checksum How to use checksums |
8d7c71358314a6ce89a5a3e36e25362bd0e4bb73f8d4b3adb7e69d0de1c26239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.10 Linux/5.15.0-73-generic
|