to_int
to_int(
obj ,
)-> ‘pd.Series | np.ndarray | int | np.integer | float’
Ensure a scalar or array is a number.
If the input values represents a time or a time-delta, convert it to a an int representing ns.
A Series stays a Series and any other sequence becomes an array. Other inputs come back as a scalar, but not always an int: time-like values convert through numpy and yield np.int64, and null yields NaN.