Skip to content

FEAT: Allow empty TimeSeries #117

Description

@simonstanley

Describe the feature

Currently if we pass in an empty dataframe we get an error. We would like to allow this.

The structure around the TimeSeries can still be rigid, i.e. time column name required, periodicity and resolution set etc., and these can be checked against if data is added later.

Should come with an is_empty() method

Motivation

Is plausible in a work flow to end up with an empty dataframe that initialises a timeframe object. We don't want to error at this

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions