Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.resolution PR02" \
-i "pandas.Timestamp.tzinfo GL08" \
-i "pandas.Timestamp.year GL08" \
-i "pandas.api.types.is_float PR01,SA01" \
-i "pandas.api.types.is_integer PR01,SA01" \
-i "pandas.api.types.is_iterator PR07,SA01" \
-i "pandas.api.types.is_re_compilable PR07,SA01" \
Expand Down
14 changes: 14 additions & 0 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,23 @@ def is_float(obj: object) -> bool:
"""
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
----------
obj : object
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
--------
Expand Down