Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add
Enum
dtype docstring example (#1514)
* Add docstring example for converting pl.Enum to nw.Enum * Pandas and PyArrow don't have Enum dtypes, so no example given. * Tried giving a Narwhals example of category validation using `nw.replace_strict` and having `return_dtype=nw.Enum()` but casting to Enum is not supported and `nw.Enum` accepts no allowed categories anyway. * Use same `data` as Categorical and String examples * Remove unused imports
- Loading branch information