Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up index methods #15496

Merged
merged 7 commits into from
Apr 22, 2024
Merged
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/branch-24.06' into ref/index2
  • Loading branch information
mroeschke committed Apr 18, 2024
commit 74ad1488b616b8fe23f4297c48dd743bfe16297a
10 changes: 9 additions & 1 deletion python/cudf/cudf/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,15 @@ def __init__(
raise TypeError("dtype must be a datetime type")

name = _getdefault_name(data, name=name)
data = column.as_column(data, dtype=dtype)
data = column.as_column(data)

# TODO: Remove this if statement and fix tests now that
# there's timezone support
if isinstance(data.dtype, pd.DatetimeTZDtype):
raise NotImplementedError(
"cuDF does not yet support timezone-aware datetimes"
)
data = data.astype(dtype)

if copy:
data = data.copy()
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.