NVIDIA / NVIDIA/cudf

[QST] How how to expose __dict__ when `cudf.pandas` is enabled?

Open
#14,405 0 comments 0 reactions 0 assignees View on GitHub
cudf.pandas Python question
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

Some of the pandas tests spelunk the `__dict__` of a module to determine what to collect. E.g. `tests/dtypes/test_generic.py` does:
```
from pandas.core.dtypes import generic as gt
...
@pytest.mark.parametrize("abctype", [e for e in gt.__dict__ if e.startswith("ABC")])
def test_abc_coverage(self, abctype):
```

with `cudf.pandas` enabled:
```
from pandas.core.dtypes import generic as gt
gt.__dict__.keys() # does _not_ contain ABCCategorical
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.