Skip to content

ARIMA: Check if input dataframe has one column #2575

Closed

Description

@hlin117

For a while, I was receiving this unhelpful error message when I was initializing an ARIMA model using a 2-D dataframe:

untitled

Essentially, the TypeError made me think that my input column names were wrong. But what was really happening was I needed to pass in either a 2-D dataframe with one column, or a pandas Series.

It would be nice to throw an error message if a 2-D dataframe is detected with more than one column.

Activity

  1. added this to the 0.10 milestone on Oct 4, 2017
  2. josef-pkt commented on Oct 4, 2017

    @josef-pkt
    Member

    my guess is that this is still open

    (issue was lost without labels)

  3. josef-pkt commented on Oct 7, 2017

    @josef-pkt
    Member

    related: #3988

    We need to check unit test coverage and verify what happens in different cases of 1-D, 2-D (nobs, 1) and 2-D (nobs, k), k>1

  4. josef-pkt commented on Oct 7, 2017

    @josef-pkt
    Member
  5. josef-pkt commented on Oct 8, 2017

    @josef-pkt
    Member

    the stack overflow question has the same exception message as
    #3269 (comment)

    possibly related to how series.name is handled (or not enough cases are handled)
    as pointed out by @jbrockmendel here
    #3960 (comment)
    see followup comments

  6. modified the milestones: 0.10, 0.9 on Oct 9, 2017
  7. added 2 commits that reference this issue on May 7, 2019
    c9b96d7
    e6e6199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions