I am unable to open the CSV file. The path was located in the local machine.
You can't use files from your own computer in repl.it. You will have to upload the file yourself.
Click on the 3 dots in the top left and click
Then upload your CSV file.
You can then just do what you are doing, but with the file name, e.g. if the CSV file is called
with open('D:\Python Projects\files.csv', 'r') as data:
Please mark this as the answer if it solved your problem :)