Use the dframe from pandas module:
df = dframe.resample('t', how = 'sum')
And after that I want to write the data in a new file. I use this:
with open('dframe.txt', 'w') as fout:
fout.write(df.price1) #it is the first column
But it doesn’t work.
df.price1returns aSeries. LuckilySeriesalso has ato_csvmethod similar to theDataFrame's:Example usage: