pandas.api.types.is_integer#
- pandas.api.types.is_integer(obj)#
Return True if given object is integer.
This method checks whether the passed object is an integer type. It returns True if the object is an integer, and False otherwise.
- Parameters:
- objobject
The object to check for integer type.
- Returns:
- bool
True if the object is of integer type, otherwise False.
See also
api.types.is_float
Check if an object is of float type.
api.types.is_numeric_dtype
Check if an object is of numeric type.
Examples
>>> pd.api.types.is_integer(1) True
>>> pd.api.types.is_integer(1.0) False