rapidsai/cudf

[FEA] pandas DatetimeIndex.indexer_between_time

Open

#15.380 aperta il 23 mar 2024

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C++ (735 fork)batch import
Pythonfeature requestgood first issue

Metriche repository

Star
 (6000 star)
Metriche merge PR
 (Merge medio 17g 21h) (230 PR mergiate in 30 g)

Descrizione

I watched @shwina's GTC talk (https://register.nvidia.com/flow/nvidia/gtcs24/attendeeportaldigital/page/sessioncatalog/session/1695219773174001AmnA thanks Ashwin I really enjoyed it!)

Is your feature request related to a problem? Please describe. No. I just noticed there wasn't an issue for DatetimeIndex.indexer_between_time. I also enjoyed the user experience that %%cudf.pandas.profile points users to raise issues to highlight pandas API that falls back to CPU (https://github.com/rapidsai/cudf/blob/branch-24.06/python/cudf/cudf/pandas/profiler.py#L300).

Describe the solution you'd like

import pandas as pd
pd.date_range("2023-01-01", "2023-01-02", freq="1h").indexer_between_time("09:00", "16:00")
import cudf
cudf.date_range("2023-01-01", "2023-01-02", freq="1h").indexer_between_time("09:00", "16:00")

Describe alternatives you've considered There may be a cudf work around in the meantime for a user who needs indexer_between_time that could be captured at https://docs.rapids.ai/api/cudf/stable/cudf_pandas/

Additional context Could create a new issue template with the "pandas" label (https://github.com/rapidsai/cudf/issues?q=is%3Aopen+is%3Aissue+label%3Apandas) to be used at https://github.com/rapidsai/cudf/blob/branch-24.06/python/cudf/cudf/pandas/profiler.py#L297 fixed a bug at https://github.com/rapidsai/cudf/pull/15381

Guida contributor