https://github.com/nixtla logo
#general
Title
# general
a

Ada Canaydin

07/19/2022, 12:31 PM
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

fede (nixtla) (they/them)

07/19/2022, 8:39 PM
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

Ada Canaydin

07/21/2022, 1:58 PM
Thank you so much Fede! It works now :)
🙌 2