rapidsai/cudf

`RangeIndex.to_numpy`: Restore caching and fix signature

Open

#21347 opened on Feb 5, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)C++ (6,000 stars) (735 forks)batch import
Pythongood first issue

Description

Currently, RangeIndex.to_numpy() is missing standard pandas arguments and lacks the caching mechanism previously provided by values_host. We should add caching back and make the signature compliant:

def to_numpy(self, dtype=None, copy=False, na_value=None)
  • See #21346

Contributor guide