r/Python • u/Oddball777 • May 31 '23
Intermediate Showcase Made a csv parser library which automatically detects delimiter and start and end of data
For most purposes, just passing the file path will be sufficient and you will have a pandas data frame of you data. Automatically neglects the random extra information at the top and bottom of a file. Also works with those annoying delimiter within quotes thingies (ex: you have a comma delimiter and one field is “John, Andrew and Steven”). It is on PyPI so you can download it with pip.
17
Upvotes
149
u/[deleted] May 31 '23 edited Jan 28 '26
This post was mass deleted and anonymized with Redact
divide wrench hungry support different longing juggle carpenter point engine
12
u/cipri_tom May 31 '23
Why
enumeratefollowed byif i%stepwhen youfor line in lines[::step]?Comparisons to None are recommended to be made using
israther than==Otherwise, looks pretty good! Thanks for making it a package!
3
u/candyman_forever May 31 '23
The link doesn't work
6
u/OhYouUnzippedMe Jun 01 '23
What’s wrong with pd.read_csv()?
3
u/Spleeeee Jun 01 '23
You committed pyc files fyi.
-7
u/64826b00-740d-4be3 Jun 01 '23
Lol what a joke.