This is the code that I used to import my data as csv
from pandas import read_csv
from matplotlib import pyplot as pltplt
series = read_csv('final.csv', header=0, index_col=0)
this is the second one which I tried
import csv
with open('people.csv', 'r') as file:
reader = csv.reader(file)
for row in reader:
print(row)
But I found same kind of error like this in both case
FileNotFoundError: [Errno 2] File final.csv does not exist: 'final.csv'
FileNotFoundError: File final.csv does not exist. The code cannot find the file you've tried to open. Is the file in the same folder that you're launching the script from?