searvey icon indicating copy to clipboard operation
searvey copied to clipboard

`pandas.Timestamp` with `ns` precision for `endtime` returns empty datasets

Open pmav99 opened this issue 2 years ago • 2 comments

ioc = searvey.get_ioc_stations()

ns_ts = pd.Timestamp("2023-01-01T00:00:00.123456789")
us_ts = pd.Timestamp("2023-01-01T00:00:00.123456")

ds = searvey.get_ioc_data(
    ioc[ioc.ioc_code=="acap2"],
    endtime=ns_ts,
    period=1,
    truncate_seconds=False,
    disable_progress_bar=True,
)
ds  # empty!!!!!

ds = searvey.get_ioc_data(
    ioc[ioc.ioc_code=="acap2"],
    endtime=us_ts,
    period=1,
    truncate_seconds=False,
    disable_progress_bar=True,
)
ds

pmav99 avatar Nov 02 '23 11:11 pmav99

Can I get assigned this please?

abdu558 avatar Apr 02 '24 16:04 abdu558

Feel free to make a PR. We will be happy to review it

pmav99 avatar Apr 02 '24 18:04 pmav99