4 ms·
On the other hand, if I need to parse a CSV with python, why not load pandas if you can bang it out super quickly?
by klysm 3y ago
On the other hand, if I need to parse a CSV with python, why not load pandas if you can bang it out super quickly?
- aidos 3y agoAn aversion to using something beyond the stdlib for no good reason probably. Personally I've seen people reach for pandas only to accidentally coerce data in non-obvious ways. Clearly it depends on what you're planning on doing with the data afterwards though. import csv with open(filename, 'r') as f: r = csv.reader(f) for row in r: tsc, _, pc, *_ = row print(int(tsc, 16), int(pc, 16))