Skip to content

Transform pandas dataframe with time series Index to format that is accepted by sktime #6370

Answered by fkiraly
till90 asked this question in Q&A
Discussion options

You must be logged in to vote

You are attempting time series regression, that is the learning task where you have, say, 142 time series with 142 labels, e.g., 142 temperature/pressure curves and 142 instances of "good", "bad", "other", etc. In sktime parlance, collections of time series like this (the 142) form a Panel.

What your screenshot shows is a single time series, which is Series abstract data type, and the pd.DataFrame format that you are complying with is a vlaid format to represent a single time series. However, for time series regression you need multiple series, and those need to be in a Panel format, e.g., pd-multiindex.

What I would suggest to do:

  1. first, check whether your learning task is inded time se…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ybenazouz
Comment options

@fkiraly
Comment options

@ybenazouz
Comment options

@fkiraly
Comment options

Answer selected by till90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
module:regression regression module: time series regression
3 participants