Skip to content

Allow pandas Series in ps.forecast and transform to 1D DataFrames internally #1091

@raoulcollenteur

Description

@raoulcollenteur

Describe the proposed feature

Right now a dataframe is expected, but for user-friendliness it would be good to allow for Series as well and internally convert these to 1D DataFrames.

Expected usage

Now this is required

fc = {
    "rch": [
        pd.DataFrame(scenarios),
        pd.DataFrame(scenarios),
    ]
}

where scenarios is a pandas.Series.

Additional context

Add any other context about the feature here.

Issue checklist

  • Add labels
  • Add issue type
  • Assign yourself, a Pastas developer or no one
  • Check if there is not already an existing issue for this feature

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions