How to stack columns of a time series data in python

Refresh

4 weeks ago

Views

8 time

0

I have a dataframe containing time series feature. In that, I would like to stack 5 features from this dataframe, each of shape(129,300).

to extract one feature alone I use:

Feature=df.iloc[:,start:end] #df is the dataframe containing the complete dataset

This retreives me that particular channel of shape (129,300).

These features will be used in neural networks later. So looking for a way to stack all the 5 features together in a dataframe.

0 answers