taavitje
taavitje

Reputation: 35

Pandas reading a specific line in python with a csv file

I want to read a specific line in a csv file in pandas on python.Here on this image I want to read the 19010101 date enter image description here

Upvotes: 0

Views: 341

Answers (1)

DerrickAtWork
DerrickAtWork

Reputation: 106

You can specify the column you want to use

df=read_csv(yourcsv.csv)
dates = df['DATE'].values.tolist()
print(dates[0])

Bunch of ways to do this, just depends on your requirements. Iloc function might be of use to you too.

Upvotes: 1

Related Questions