pandas.api.types.is_float#

pandas.api.types.is_float(obj)#

Return True if given object is float.

This method checks whether the passed object is a float type. It returns True if the object is a float, and False otherwise.

Parameters:
objobject

The object to check for float type.

Returns:
bool

True if the object is of float type, otherwise False.

See also

api.types.is_integer

Check if an object is of integer type.

api.types.is_numeric_dtype

Check if an object is of numeric type.

Examples

>>> pd.api.types.is_float(1.0)
True
>>> pd.api.types.is_float(1)
False