Python Forum
create 10 yearly blocks from time series using pandas - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: create 10 yearly blocks from time series using pandas (/thread-19990.html)



create 10 yearly blocks from time series using pandas - Staph - Jul-23-2019

So I have time series of ts = 1, 2,3,4, ........,320

I want to arrange in in dataframe as follows:
row1 1,2,3............., 120
row2, 12,13, 14,........ 122
row3, 24,25,26, ........ 134

etc,

Any help wll be appreciated

simply done using numpy stridded app......


RE: create 10 yearly blocks from time series using pandas - Malt - Jul-23-2019

In what logic, you want to distribute the rows? it will help to think over it