CSV Column to Python Dictionary

preview_player
Показать описание
#python

This video walks through how to convert a single column from a CSV file into a python dictionary. This tutorial uses the DictReader method. It also walks through how to query to find out if a value exists in the list of values within the python dictionary.

timestamps
00:00 video overview
00:23 import python csv DictReader
01:38 Create python dictionary
01:55 append values in record to dictionary
02:50 print results
3:02 find if value exists in dictionary
Рекомендации по теме
Комментарии
Автор

this helped me solve a problem i was stuck on for weeks. Thanks

Boblordofthedance
Автор

Nice, clear, and straight to it. Liked!

keifer
Автор

I need help i have csv sheet in the " requirement was there are 30 columns and I need to split one CSV file to 2 based on 1 condition if any data is present in that column that row needs to store in one CSV and of blank in that column cell that all row record into another CSV file like that splitting should be done for more than 10, 000 records can you help me

veginetikalyanprasadchowda
Автор

What if there is no header on the csv file just starts the first row with 8 column and goes on?

LukaDonesnitch
Автор

how can we do it for n number of columns any generalized process?

LZgamer-top
Автор

How can you put it in a column when print

maxli
Автор

could you do this without importing the csv module

markog