pandas 1.4.2

ParametersReturnsBackRef
is_datetimelike_v_numeric(a, b)

Parameters

a : array-like, scalar

The first object to check.

b : array-like, scalar

The second object to check.

Returns

boolean

Whether we return a comparing a datetime-like to a numeric object.

Check if we are comparing a datetime-like object to a numeric object. By "numeric," we mean an object that is either of an int or float dtype.

Examples

This example is valid syntax, but we were not able to check execution
>>> from datetime import datetime
... dt = np.datetime64(datetime(2017, 1, 1)) >>>
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(1, 1)
False
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(dt, dt)
False
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(1, dt)
True
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(dt, 1)  # symmetric check
True
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(np.array([dt]), 1)
True
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(np.array([1]), dt)
True
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(np.array([dt]), np.array([1]))
True
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(np.array([1]), np.array([2]))
False
This example is valid syntax, but we were not able to check execution
>>> is_datetimelike_v_numeric(np.array([dt]), np.array([dt]))
False
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.dtypes.common.is_datetimelike_v_numeric

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/dtypes/common.py#1091
type: <class 'function'>
Commit: