I m triying to write np.array(covid_df['datetime']) and np.array(covid_df['value'])
to csv file with heading in python3 "date" and "value"
how can I do that?
I m triying to write np.array(covid_df['datetime']) and np.array(covid_df['value'])
to csv file with heading in python3 "date" and "value"
how can I do that?
arr = np.array(covid_df['datetime'])
np.savetxt('array.csv', [arr], delimiter=',', fmt='%d')
I can do this only "datetime" but I want to write with "value" and headers