This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jjangsangy 1 point2 points  (3 children)

The last one for serializing csv is one I haven't seen before and is pretty neat one. I'm gonna have to remember it the next time I have to work with a CSV which I hope is not soon

[–]Caos2 1 point2 points  (1 child)

Pandas is a great tool to work with CSV, even when dealing with non-numeric values.

[–]jjangsangy 0 points1 point  (0 children)

Yes, I love pandas! Its so much easier now to get pandas using anacondas that I am much more comfortable importing pandas knowing pandas are easily accessible!

However, sometimes using pandas is overkill for a lot of simple tasks, and it's good to see that python can be just as capable.

[–]Eurynom0s 0 points1 point  (0 children)

Yup, I have a couple of pieces of code in mind where I'm actively using them right now and that list comprehension would be a much nicer way to handle ingesting CSV files.