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

Remove some unnecessary module imports #18143

Merged
merged 2 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions python/cudf/cudf/core/column/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from typing import Literal, Union, overload

import cudf
import cudf.core.column
import cudf.core.column_accessor
from cudf.utils.utils import NotIterable

ParentType = Union["cudf.Series", "cudf.core.index.Index"]
Expand Down
1 change: 0 additions & 1 deletion python/cudf/cudf/core/column/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import pylibcudf as plc

import cudf
import cudf.api.types
import cudf.core.column.column as column
import cudf.core.column.datetime as datetime
from cudf.api.types import is_integer, is_scalar, is_string_dtype
Expand Down
1 change: 0 additions & 1 deletion python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import pylibcudf as plc

import cudf
import cudf.core.common
from cudf.api.extensions import no_default
from cudf.api.types import (
_is_scalar_or_zero_d_array,
Expand Down
4 changes: 2 additions & 2 deletions python/cudf/cudf/core/indexed_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import pylibcudf as plc

import cudf
import cudf.core
import cudf.core.algorithms
import cudf.core.common
from cudf.api.extensions import no_default
from cudf.api.types import (
_is_non_decimal_numeric_dtype,
Expand Down Expand Up @@ -3908,7 +3908,7 @@ def _reindex(
}

result = self.__class__._from_data(
data=cudf.core.column_accessor.ColumnAccessor(
data=ColumnAccessor(
cols,
multiindex=multiindex,
level_names=level_names,
Expand Down
8 changes: 3 additions & 5 deletions python/cudf/cudf/core/udf/groupby_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
# Copyright (c) 2022-2025, NVIDIA CORPORATION.


import cupy as cp
Expand All @@ -8,7 +8,7 @@
from numba.cuda.cudadrv.devices import get_context
from numba.np import numpy_support

import cudf.core.udf.utils
from cudf.core.column import column_empty
from cudf.core.udf.groupby_typing import (
SUPPORTED_GROUPBY_NUMPY_TYPES,
Group,
Expand Down Expand Up @@ -154,9 +154,7 @@ def jit_groupby_apply(offsets, grouped_values, function, *args):
offsets = cp.asarray(offsets)
ngroups = len(offsets) - 1

output = cudf.core.column.column_empty(
ngroups, dtype=return_type, for_numba=True
)
output = column_empty(ngroups, dtype=return_type, for_numba=True)
launch_args = [
offsets,
output,
Expand Down
1 change: 0 additions & 1 deletion python/cudf/cudf/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import rmm

import cudf
import cudf.api.types
from cudf.core import column
from cudf.core.buffer import as_buffer
from cudf.utils.dtypes import SIZE_TYPE_DTYPE
Expand Down
Loading