Selecting columns when reading a CSV into pandas

preview_player
Показать описание
Are you reading a CSV file into pandas? Your analysis might not require all of the columns — and you can save a lot of memory by selecting only those that you need. In this video, I show you how to select specific columns from a CSV file, either by name or by position.

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

I really fell in love with CSV files. I recently started learning python to handle transaction data and capital gains calculation with pandas.

KunjaBihariKrishna
Автор

I love the way you explain this, Thanks for a NICE video.

eeeeg-ry
Автор

Thank you so much! This is what I've been looking for

KT-ozmd
Автор

If you're getting Usecols do not match columns, columns expected but not found: just add sep=';' or whatever your separator is.

juhakumpula
Автор

Great explanation,
I have precipitation value in all columns, how can I select all the columns I have that starts with D_ which is 7400 date time? (for example: D_20001201)

hadikarimi
Автор

How can choose only range of columns such as 5 to 9, I tried 5:9 it will not work

aliosaid