i am unable to use csv file in replit, can any one help me.
What do you mean exactly? Which programming language?
As @whileTRUEpass said, we need more info. Try giving us the repl link (not invite), which programming language, any errors, and what you have already tried.
hey, csv files are just data, so you won’t see previews for it (like excel spreadsheet, etc)
You’ll have to manually parse it in your programming language if you want to use it.
Here’s a simple csv parser in python:
import csv with open('__INSERT_YOUR_CSV_FILE__.csv', newline='') as csvfile: spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') for row in spamreader: print(', '.join(row))
Read more: csv — CSV File Reading and Writing — Python 3.11.3 documentation
the prgramming language is python and the iDE is replit.
when i am using this
import csv with open('https://replit.com/@Rajababusingh/learn-ds#1.%20Weather%20Data.csv', newline='') as csvfile: spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|') for row in spamreader: print(', '.join(row))
i am getting this
thanks bro problem solved.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.