Articles → Python → Read CSV File In Python
Read CSV File In Python
CSV File
Code
import csv
with open(r"c:\temp\Book1.csv", 'rt') as f:
data = csv.reader(f)
#skipping header
next(data)
for row in data:
print(row[0])
Output
Posted By - | Karan Gupta |
|
Posted On - | Thursday, May 30, 2019 |