I am working on a project in machine learning and have done the back-end part in python using various packages in python but i want to develop a front-end for uploading a csv file that is done by the user of our project/application
to create a front-end for python code to upload a csv file
Collapse
X
-
-
Just import it as you import any other file in python. There is a csv module inbuilt in python, and you can use it to read, write csv files.
See this code below.
import csv
with open("data.csv" , 'r') as csvfile:
reader = csv.reader(csvf ile)
for row in reader:
print(row)
It is very simple in python.Comment
Comment