Skip to main content

Pandas fast reading table file by using pickle

Project description

pfrtf - Pandas fast reading table file by using pickle

This module will speed up the loading of data into Pandas from files that rarely change. Supports file formats (.xlsx, .xls, .xlsm, .xlsb and .csv). This module tracks file hashes and saves data in *.pkl format. If the file has already been read, re-reading occurs from the *.pkl file. This significantly speeds up the loading of data. In my case, it speeds up data reading by 100 times.

Requirements

Pandas>=1.4.4
openpyxl>=2.6.0

Install

pip install pfrtf

Tutorial:

import pfrtf
import os
path_file = os.path.join(os.getcwd(),'SampleData.xlsx')
df = pfrtf.fast_read_file(path_file)

import pfrtf
df = pfrtf.fast_read_file(r'C:\Users\user\SampleData.xlsx')

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

pfrtf-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

pfrtf-0.0.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pfrtf-0.0.1.tar.gz.

File metadata

  • Download URL: pfrtf-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pfrtf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2ab04891fe2c624b5881de1560caae0e0adba4410b9fbf8b1618b26f543312aa
MD5 39e1ec560cef3a780cc2daff307df8f6
BLAKE2b-256 4b3a302d1a0ab3a2074f6b3276260fd20a9201e86b3eca40c5dab3fee1b0968f

See more details on using hashes here.

File details

Details for the file pfrtf-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pfrtf-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for pfrtf-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63bcb2a00b74877cde9054c1f7f17db52b67910c062471be10f200c84b6dca35
MD5 365c039eede26abcd37df825fdd2d54d
BLAKE2b-256 a833380634fc8d21d558ca158102c48e070e380521e10bf66711dbc411f524ca

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