laszukdawid / PyEMD

Python implementation of Empirical Mode Decompoisition (EMD) method
https://pyemd.readthedocs.io/
Apache License 2.0
867 stars 224 forks source link

error running ceemdan #120

Closed ewoodsusmc closed 2 years ago

ewoodsusmc commented 2 years ago

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!

ewoodsusmc commented 2 years ago

I was able to resolve it and now moving forward!