Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

timestamp rounding error dataframe client  #885

Open
@svhb1000

Description

@svhb1000

As continuation of #811
The solution for the rounding error seems not to be merged.

This gives particular problems when merging data from different sources to a database : timestamps must be CORRECT! This is an essential point in a timeseries database. (my thoughts...)

python 3 makes floats if you divide with '/' --> please change to '//'

Example : line 375 fro _dataframe_client.py

            time = ((dataframe.index.to_timestamp().values.astype(np.int64) /
                     precision_factor).astype(np.int64).astype(str))

to

            time = ((dataframe.index.to_timestamp().values.astype(np.int64) //
                     precision_factor).astype(np.int64).astype(str))

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