Skip to content

Nanoseconds being truncated in asof #3375

Closed
@schwallie

Description

@schwallie

match_time = get_info.index.asof(trade_time)
match_price = get_info[match_time]['Bid Price']

The actual index value:
<Timestamp: 2013-04-10 10:22:01.696815975-0500 CDT, tz=US/Central>

The error returned:
KeyError: u'no item named 2013-04-10 10:22:01.696815-05:00'

It seems to me that it is cutting off the last digits of the timestamp in this example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDatetimeDatetime data dtypeDtype ConversionsUnexpected or buggy dtype conversionsIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions