Community Archive

🧡 View Thread

🧡 Thread (3 tweets)

Placeholder
Igor Brigadir πŸ‡ΊπŸ‡¦@IgorBrigadirβ€’ over 4 years ago

This is a bad take. Extra dependency? pandas is ubiquitous. It's in every DS env. The right tool is sometimes not the most minimal but the best tested one. Rolling your own CSV reader is an awfully expensive waste of your time, and guarantees bugs. Use pandas for reading CSVs https://t.co/DCxXAF71TR

79 9
2/7/2021
Placeholder
Igor Brigadir πŸ‡ΊπŸ‡¦@IgorBrigadirβ€’ over 4 years ago
Replying to @IgorBrigadir

Python has a CSV library, but if you're doing anything more complicated than just reading values for configs then it's pandas all the way. Speed is useless here, if you're reading tiny CSVs so much that they matter you seriously need to rethink what you're doing.

15 0
2/7/2021
Placeholder
Igor Brigadir πŸ‡ΊπŸ‡¦@IgorBrigadirβ€’ over 4 years ago
Replying to @IgorBrigadir

This makes *way more* sense: https://t.co/mhpIVdpvIV

0 0
2/8/2021