Replies: 1 comment
-
You might be able to do this with pandas-own operations. I think using tmp = df.groupby(...).apply(lambda x: extract_features(x, ...).droplevel(0) After that, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tsfresh provides a lot of useful features from an input DataFrame (df). But I'm looking for something similar to
pd.df.groupby.transform
, which allows me to compute features for each group and helps assign, in a new column, the value of the computed feature to all rows belonging to that group:groups = df.groupby(group_cols)
df["Std"] = groups["column"].transform('std') # Standard deviation as example
Pandas provides this groupby transform feature for a few statistical features. I wish to use tsfresh to compute comprehensive features and assign the feature values to each row belonging to the group in a new column. How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions