Skip to content

Consider storing index column name rather than fixing to Index #201

Description

@ancapdev

Is there appetite to change the API for TSFrame so it stores the name of the index column, preserving the source dataframe, rather than replacing the column with a new named Index even when user specified?

For context, I'm building a time series system with streaming and batch APIs. In my system the user defines schemas for their time series, these schemas include the time field/column, and preserving the names of fields/columns throughout consistently is important for my use case. The current TSFrame API makes that awkward and I don't want to let the TSFrames column name override govern downstream design and naming decisions.

At a more fundamental level what I would expect TSFrame to be is a pure semantic layer that verifies time ordering of rows in dataframes, guaranteeing that invariant to functions operating on time series, without changing the underlying data the way it currently does.

Now that the design is burned in, I appreciate it may not be possible to change it without breaking assumptions in dependent code, but I thought asking is worth it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions