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

[FEA] Remove extraneous modules/functionality in cudf namespace #18250

Open
mroeschke opened this issue Mar 12, 2025 · 0 comments
Open

[FEA] Remove extraneous modules/functionality in cudf namespace #18250

mroeschke opened this issue Mar 12, 2025 · 0 comments
Labels
feature request New feature or request Python Affects Python cuDF API.

Comments

@mroeschke
Copy link
Contributor

mroeschke commented Mar 12, 2025

Is your feature request related to a problem? Please describe.
When import cudf is called, we import a few modules/functions for setup but leave a lot of these objects in the namespace afterwards. Since we advertise cudf as a public namespace, we should only have objects that are designed to be use publicly

e.g. today you can do

In [5]: import cudf

In [6]: cudf.cupy.zeros(1)
Out[6]: array([0.])

pandas had a similar discussion in pandas-dev/pandas#30296

Describe the solution you'd like
Remove objects in the cudf namespace that are scoped to just cudf Python and are designed to be public

I suggest del-ing

  • _setup_numba
  • validate_setup
  • numba_config
  • cuda
  • cupy
  • rmm
  • rmm_cupy_allocator
  • RMMNumbaManager
  • core
  • clear_cache

And these objects which probably should not have public API use

  • dtype
  • BaseIndex
  • isclose

Describe alternatives you've considered
Status quo.

Additional context
Add any other context, code examples, or references to existing implementations about the feature request here.

@mroeschke mroeschke added feature request New feature or request Python Affects Python cuDF API. labels Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Python Affects Python cuDF API.
Projects
Status: Todo
Development

No branches or pull requests

1 participant