Skip to main content

Improved method for reading the first/last/specific line from csv into a DataFrame

Project description

Improved method for reading the first/last/specific line from csv into a DataFrame

Ever deal with multiple huge csv files and and the panads read_csv/skiprows method is slowing you down? You are not alone.

read-csv-turbo is an improved method of reading the first and last lines using unix head and tail commands to get the data you want in a dataframe as fast as possible. I may include Windows support in the future if requested.

Reading a large csv once is “fine” but often I find myself looping through many files and this process is painfully slow which is why StackOverflow suggestions didn’t cut it. There may be a newer/smarter way of approaching this but this method should be as fast as you could get.

At the moment the use case of this is quite limited as it just provides a fast way to read the first, last or n row of a csv into a dataframe

github: https://github.com/donjor/read-csv-turbo

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

readcsvturbo-0.0.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

readcsvturbo-0.0.6-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file readcsvturbo-0.0.6.tar.gz.

File metadata

  • Download URL: readcsvturbo-0.0.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for readcsvturbo-0.0.6.tar.gz
Algorithm Hash digest
SHA256 7ac214a6b7cbb02528d1b3e284aa49eff246c17e77b8a7f34a33098607638ccb
MD5 051ebc2f6029ffe91dc4392074ace4e2
BLAKE2b-256 b2a239505e40c2fd5d6d3b0692c26d7572d1192aa121dc44ca7c7da6356c6aeb

See more details on using hashes here.

File details

Details for the file readcsvturbo-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: readcsvturbo-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for readcsvturbo-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 40470ed64cfff1781001b7b6f999fb1774d84ff89bfcaa867bb370b925883f5b
MD5 9246530c0b60c66b7d25428a0582718f
BLAKE2b-256 c48831de83d028372866fbffecc0653120ccda32912f93f207ab7997669483cb

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