Closed PeterMa1 closed 1 week ago
You are trying to use the to_list()
method on a Pandas Index
object that you returned by accessing the columns
attribute of a pandas DataFrame. However, your Index
object does not appear have such a method. What pandas version are you using?
Hello, i am using pandas: 0.23.4. and python: 3.7.0.final.0 python-bits: 64 will any of these cause the problem?
I think to_list()
was only added in pandas 0.24. So for your version, you should use tolist()
. However, it's probably best to just update pandas to the latest version, to avoid further issues.
Does this fix your issue?
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one.
Hi, i am trying to add exogenous variables to timegpt forecast. However, i am getting the following errors: x_cols = X_df.drop(columns=["unique_id", "ds"]).columns.to_list() AttributeError: 'Index' object has no attribute 'to_list'.
Does anyone else encounter similar problems?