Daniel Dahms Daniel Dahms - 4 years ago 312
Python Question

using pandas.read_csv to read certain columns

I have a .csv file with three columns and many rows. I am trying to use pandas to read only the third column.

right now I have:

import pandas as pd


Answer Source

column indexing is zero based, pass 2 to read the third column:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download