468,505 Members | 1,927 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

to create a front-end for python code to upload a csv file

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
Feb 10 '19 #1
2 1892
sritaa
5
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(csvfile)
for row in reader:
print(row)
It is very simple in python.
Feb 28 '19 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by JenHu | last post: by
3 posts views Thread by Brian | last post: by
reply views Thread by Dan | last post: by
1 post views Thread by Dev | last post: by
1 post views Thread by printline | last post: by
5 posts views Thread by kailashchandra | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.