3.5 different ways to parse CSV files using Python

preview_player
Показать описание
Comma Separated Value (CSV) Files are a common format used to organize data. In this video I show you 3+ ways to parse a CSV file using Python from least efficient to most efficient, in my opinion.
Рекомендации по теме
Комментарии
Автор

thank you so much for showing the pandas way! much easier for me and love the examples.

mantramusic
Автор

What is the additional benefit of the second solution, which you presented? I mean: we could simply loop over the open-file, and print the stripped loop(row in your case) and this will result in exactly the same string as in the second solution (import csv, loop over csv.reader-object and print the joined strings in one string again. What is the additional benefit to use csv.reader and join(7:40)? Thanks for the answer

nononnomonohjghdgdshrsrhsjgd
Автор

It's told pretty bad to use chain indexing for pandas.
Use df.loc() instead.

samer
Автор

The code is fake its not working in python

shweneet
join shbcf.ru