Tensorflow:数据帧列的时间序列

Tensorflow:数据帧列的时间序列,tensorflow,time-series,Tensorflow,Time Series,我有一个数据框,如下所示: ID | col1 | col2 |... 1 | 0.123| 1.234|... 2 | 1.561| 2.315|... 我想制作一个时间序列对象,其中每个步骤的输入都是DF中的一列。例如: ID 1: t = 1, input = 0.123 (col 1) t = 2, input = 1.234 (col 2) ... Repeats until the end of the dataframe 我试过使用数组中的timeseires\u data

我有一个数据框,如下所示:

ID | col1 | col2 |...
1  | 0.123| 1.234|...
2  | 1.561| 2.315|...
我想制作一个时间序列对象,其中每个步骤的输入都是DF中的一列。例如:

ID 1:
t = 1, input = 0.123 (col 1)
t = 2, input = 1.234 (col 2)
...
Repeats until the end of the dataframe
我试过使用数组中的
timeseires\u dataset\u,但它似乎不是我想要的,因为它的形状很奇怪