Skip to main content

Pandas Extension Package used to read Excel files with limit rows

Project description

Description

Pandas Excel LimitedRows is a Python library used to optimize the Pandas's read_excel function, adding a max_row parameter if you need to read only the X first lines.

Installation

Use the package manager pip to install foobar.

pip install pandas-excel-limitedrows

Usage

import pandas_excel_limitedrows as pdlr

# Generate DataFrame with first 50 rows
df = pdlr.read_excel(file, max_rows=50)

# Instanciate ExcelFile with first 50 rows
excel_file = pdlr.RowLimitedExcelFile(file, max_rows=50) 

Notes:

  • If you use sheet_name as list to read more than one sheet, all dataframes will be generated with max_rows limit;
  • All others pandas.read_excel() and pandas.ExcelFile() parameters can be used;
  • This package uses Pandas, OpenpyXL, Pyxlsb and Xlrd dependencies and works these three engines.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandas-excel-limitedrows-2.0.1.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandas_excel_limitedrows-2.0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pandas-excel-limitedrows-2.0.1.tar.gz.

File metadata

  • Download URL: pandas-excel-limitedrows-2.0.1.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pandas-excel-limitedrows-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b77e1b4077ad166dbe007b8d4f1b17a762c4755dcdd5b73facda8471023523c8
MD5 901e31a6e7328f20fb11ead3c7bd6cf0
BLAKE2b-256 e09262992aef871bdd44d12b74562c25fed1fd41ad031c96f602105bb8f668fc

See more details on using hashes here.

File details

Details for the file pandas_excel_limitedrows-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: pandas_excel_limitedrows-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

File hashes

Hashes for pandas_excel_limitedrows-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9104a5a7e07977b99cb6c0fed1212c006c1a1a3a9518b1d735b3030176c97ffb
MD5 05699aa9bb6ad16e89038fd9e997b76c
BLAKE2b-256 452d2c0f57ef5a799ea7ec1ddf099b1d243be4f4f7184019e0d33e0f5bfdad88

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page