Are you doing data science? Statistics? No?
Then for god’s sake don’t use pandas, you just look dumb af when you pull several MB of a package just to load csv. If you find yourself doing that, just stop programming and look for another job
Thanks for attention
For those that don’t know, the standard library includes a
csv
package so you can justimport csv
.Documented at https://docs.python.org/3/library/csv.html
I use
DictReader
all the time, along with a library to hande the type detection. This is the way to go, especially if you need to process line by line or filter columns and rows out first.Regardless, I’ll avoid pandas wherever I can. It’s not something I want in production level code if I can help it.