Skip to content

FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. #430

@newini

Description

@newini

Expected Behavior

This is the future warning so should be fixed.

Actual Behavior

/var/lang/lib/python3.11/site-packages/category_encoders/utils.py:50: FutureWarning: is_categorical_dtype is deprecated and will be removed in a future version. Use isinstance(dtype, CategoricalDtype) instead
  return pd.api.types.is_categorical_dtype(dtype)

Steps to Reproduce the Problem

This is the future warning so should be fixed.

Specifications

  • Version: '2.6.2'
  • Platform: Python 3.11.4
  • Subsystem: WSL2
  • Pandas version: '2.1.2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions