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.
12
u/cipri_tom May 31 '23
Why enumerate followed by if i%step when you for line in lines[::step]?
Comparisons to None are recommended to be made using is rather than ==
Otherwise, looks pretty good! Thanks for making it a package!
4
3
6
3
-7
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