Skip to main content
`Ctrl`+`K`

# pandas.api.types.is_object_dtype

pandas.api.types.is_object_dtype(arr_or_dtype)

  Check whether an array-like or dtype is of the object dtype.

  This method examines the input to determine if it is of the object data type. Object dtype is a generic data type that can hold any Python objects, including strings, lists, and custom objects.

  Parameters:
    arr_or_dtype array-like or dtype

      The array-like or dtype to check.

  Returns:
    boolean

      Whether or not the array-like or dtype is of the object dtype.

  See also

  `api.types.is_numeric_dtype`

    Check whether the provided array or dtype is of a numeric dtype.

  `api.types.is_string_dtype`

    Check whether the provided array or dtype is of the string dtype.

  `api.types.is_bool_dtype`

    Check whether the provided array or dtype is of a boolean dtype.

  Examples

      >>> from pandas.api.types import is_object_dtype
      >>> is_object_dtype(object)
      True
      >>> is_object_dtype(int)
      False
      >>> is_object_dtype(np.array([], dtype=object))
      True
      >>> is_object_dtype(np.array([], dtype=int))
      False
      >>> is_object_dtype([1, 2, 3])
      False