Answers for "array to dataframe to csv python"

4

csv to numpy array

from numpy import genfromtxt
my_data = genfromtxt('my_file.csv', delimiter=',')
Posted by: Guest on September-28-2020
2

dataframe to csv

df.to_csv(r'Path where you want to store the exported CSV file\File Name.csv', index = False)
Posted by: Guest on July-11-2021

Python Answers by Framework

Browse Popular Code Answers by Language