Skip to content

Suggestion: convert to time series #2

@tschundler

Description

@tschundler

Since the data in graphite is time series data, IMO it makes sense to have it in a DatetimeIndex.

I used this, which works, and may be worth doing by default:

        data.index = pd.DatetimeIndex(data.index.map(datetime.fromtimestamp))

Something like this should be more efficient, but gave me timezone problems:

        data.index = pd.DatetimeIndex(data.index.values.astype('datetime64[s]'))

Anyways, just a consideration. It doesn't really get in the way of use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions