Answers for "how to read data from csv in python"

0

how to read a csv file in python

import csv
with open('some.csv', newline='') as f:
    reader = csv.reader(f)
    for row in reader:
        print(row)
Posted by: Guest on May-14-2021
0

read and show csv data python

import pandas
df = pandas.read_csv('hrdata.csv')
print(df)
Posted by: Guest on July-21-2021

Code answers related to "how to read data from csv in python"

Python Answers by Framework

Browse Popular Code Answers by Language