tsfresh icon indicating copy to clipboard operation
tsfresh copied to clipboard

feature extraction output gives columns in different order for different datasets

Open alievakrash opened this issue 2 years ago • 1 comments

The problem:

Hi, great package! Thanks fro developping!

I am running the feature extraction on two datasets that have the same IDs but with different length. I use the same pre-determined kind_to_fc_parameters, but in the output the columns have a different order. Althought it is the same columns for both datasets. Is there an easy fix for this?

THanks!

alievakrash avatar May 31 '22 09:05 alievakrash

Not sure if this helps, but I sorted the columns after extraction X = X_extracted.reindex(sorted(X_extracted.columns), axis=1) Does that help?

gkumarg avatar Aug 10 '22 20:08 gkumarg