Skip to content

Initializing with duplicate timestamp values #506

Description

@CGenie

Hello,
I have this data:

    data = (
        timestamp=[Dates.DateTime(2022, 1, 1, 10, 0),
                   Dates.DateTime(2022, 1, 1, 10, 0)],
        col=[1, 2]
    )
    ta = TimeArray(data, timestamp=:timestamp)

As you see, the date is duplicated. Is there a way to "compress" this so that there is a single timestamp while the values is a list [1, 2]? Because currently it is treated as:

2×1 TimeArray{Int64, 2, DateTime, Matrix{Int64}} 2022-01-01T10:00:00 to 2022-01-01T10:00:00
│                     │ col   │
├─────────────────────┼───────┤
│ 2022-01-01T10:00:00 │ 1     │
│ 2022-01-01T10:00:00 │ 2     │

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions