DEPR: .astype(..., categories=) · Issue #17636 · pandas-dev/pandas (original) (raw)

now that we have a full-fledged CategoricalDtype, #16015, no need to accept categories= in .astype()

let's deprecate in favor of using the CDT