Reading CSV Files With Python's csv Module

preview_player
Показать описание
You’ll learn how to read standard CSV files using Python’s built-in csv module. There are two ways to read data from a CSV file using csv. The first method uses csv.Reader(), and the second uses csv.DictReader().

csv.Reader() allows you to access CSV data using indexes and is ideal for simple CSV files. csv.DictReader() on the other hand is friendlier and easy to use, especially when you're working with large CSV files.

Рекомендации по теме
Комментарии
Автор

What is the extension used for autocompleting code?

KuftuKa
Автор

I use itertools to make an iterator instead of list object so that memory is managed automatically.

dhaval
Автор

what ide or vs code extentions is that?

sharath
Автор

ok so the title says reading csv files with pythons module, but you didnt explain how to do that. total newb here

jimf