0
How we import the CSV file in python code
3 Respuestas
+ 4
CSV files are comma separated values, you can use normal way for file handling, like
with open("data.csv") as file:
print(file.read())
Outputs will like - x, x, x......
+ 2
Girish Unde ,
it is possible in certain cases to open and read the content. but if other (more complex) cases, it is better to use the python csv module. this can be imported like any other module. this module is also available in playground.
find more information in the python docs:
https://docs.python.org/3/library/csv.html
+ 1
better to use openxl or numpy libraries to handle and work with CSV files. Much easier