Answers for "using a csv file in python"

15

import csv file in python

import pandas as pd

df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
print (df)
Posted by: Guest on June-07-2020
2

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

Code answers related to "using a csv file in python"

Python Answers by Framework

Browse Popular Code Answers by Language