Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.api.types.is_number

pandas.api.types.is_number(obj)[source]

Check if the object is a number.

Parameters:

obj : The object to check.

Returns:

is_number : bool

Whether obj is a number or not.

Examples

>>> is_number(1)
True
>>> is_number("foo")
False
Scroll To Top