def is_numeric(x):
"""Determine whether some object ``x`` is a
numeric type (float, int, etc).
Parameters
----------
x : object
The item to assess
Returns
-------
bool
True if ``x`` is a float or integer type
"""
return is_float(x) or is_integer(x)
评论列表
文章目录