1# pip install pandas
2import pandas as pd
3
4# Read the csv file
5data = pd.read_csv('data.csv')
6
7# Print it out if you want
8print(data)
1import pandas as pd
2
3df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
4print (df)
5
1import csv
2with open('eggs.csv', newline='') as csvfile:
3 spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
4 for row in spamreader:
5 print(', '.join(row))
6
7# Output:
8# Spam, Spam, Spam, Spam, Spam, Baked Beans
9# Spam, Lovely Spam, Wonderful Spam
10