excel_fast_load
Load XLSX/XLSM files into pandas dataframes faster than pandas.read_excel
author: FelixKling
NOTE: Science for Change just packages this code to use it because we find it useful for Citizen Science projects!
This code is provided as is, with no license and no warranties, as it was shared by Felix: https://stackoverflow.com/a/62277641
Usage
from excel_fast_load import excel_fast_load
dataframe = excel_fast_load('path/to/excelfile.xlsx')
Optional parameters after path
sheet_name: str. Name of the sheet to read. If none, the first (not the active!) sheet is read. The default is None.
header: bool. Whether to use the first line as column headers. The default is True.
index_col: bool. Whether to use the first column as index. The default is False.
skiprows: list of int. The row numbers to skip ([0, 1] skips the first two rows). The default is [].
skipcolumns: list of int. The column numbers to skip ([0, 1] skips the first two columns). The default is [].
Raises
TypeError If the file is no .xlsx or .xlsm file.
FileNotFoundError If the sheet name is not found.
Returns
Pandas.DataFrame. The input file as DataFrame.
Metadata
Release files for excel-fast-load 1.0.0
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 |
|---|---|---|---|---|
| excel_fast_load-1.0.0.tar.gz | 4.3 kB | Without provenance | Details for excel_fast_load-1.0.0.tar.gz |
Release files / excel_fast_load-1.0.0.tar.gz
| Download URL | excel_fast_load-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fab71484d87a8bc22eb4c59c7ff591785758c7443054d37f4de2328647a030cd
|
|
BLAKE2b-256 checksum How to use checksums |
4f84dde4bbf7119a23669600ba925736cdbf3fd51a8d10ced0238025e6d9af8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.8.10
|
Security for excel-fast-load 1.0.0
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.