Skip to content

TST: checking option combinations, data #3988

Open

Description

@josef-pkt

I think we have to become more systematic in checking option combinations
e.g. predict returning pandas Series needed several fixes

For data, e.g. in predict

  • 1-d versus 2-d
    both numpy arrays and pandas Series/DataFrames
  • numpy versus pandas
  • with or without formulas and going through patsy, in predict case also transform keyword
  • other supported data structures in special cases, e.g. dict in predict

this sounds like something like 9 or more possibilities

I think we have to also think more often in other cases what option combinations are possible, and which might cause errors. (purely inherited possibilities or option combinations are less risky.)

Activity

  1. jbrockmendel commented on Oct 17, 2017

    @jbrockmendel
    Contributor

    For the list: I'm not sure if we have any checks/tests for pandas input cases where index or columns are pd.MultiIndex objects.

  2. josef-pkt commented on Oct 17, 2017

    @josef-pkt
    MemberAuthor

    I'm pretty sure we don't have any MultiIndex unit tests, but does it make a difference whether we reuse a plain index or a MultiIndex?
    AFAIK, we don't support anywhere if the index is in a regular dataframe column, and if the user doesn't us the index, then we won't use it either.

  3. jbrockmendel commented on Oct 17, 2017

    @jbrockmendel
    Contributor

    I don't expect it to make much difference, just figured if we're trying to be thorough about testing varieties of inputs, it merits including.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions