Hi everyone! I am using 'tsfeatures' to extract fe...
# general
a
Hi everyone! I am using 'tsfeatures' to extract features. However, I am getting the following error:
Copy code
--> 916         ts_features = pool.starmap(partial_get_feats, ts.groupby('unique_id'))
TypeError: 'str' object is not callable.
If you have any recommendations on how to tackle this problem, it is much appreciated! I also attached my df here and thank you in advance :)
f
Hi @Ada Canaydin! Thanks for using
tsfeatures
. :D The argument
features
receives a list of functions, so it is necessary to import
acf_features
. Also, the
freq
argument should be an integer instead of a string. Since you are using
30T
data,
freq=48
might be a good option (to reflect daily seasonality). With these changes the code would be,
Copy code
from tsfeatures import acf_features

tsfeatures(panel, freq=48, features=[acf_features])
Please let me know if you have any other questions. Happy to help. :)
a
Thank you so much Fede! It works now :)
🙌 2