Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How to save Pandas DataFrame in csv file?
pd.read_csv('file.csv', header=None, nrows=5)
df.to_csv('myDataFrame.csv')
np.savetxt("myarray.csv", a, delimiter=" ")
pd.read_excel('file.xlsx')
pd.to_excel('dir/myDataFrame.xlsx', sheet_name='Sheet1')
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!