laszukdawid/PyEMD

error running ceemdan

ewoodsusmc opened this issue · 1 comments

Hi, am excited to use your package but have run into a couple errors - hoping you can help me overcome them. I'm running the following code on a financial time series with shape (500,) and am getting the subsequent error message:

if name == "main":
X = data['close']
ceemdan = CEEMDAN()
imfs = ceemdan(X)

ValueError: Length of passed values is 1, index implies 500.

I tried to rerun it after changing the Pandas series to a dataframe but got this message:

AttributeError: 'DataFrame' object has no attribute 'dtype'

Based on the error detail, is it looking for two inputs instead of one?

Thanks in advance for your help!

I was able to resolve it and now moving forward!