MCPcopy Create free account
hub / github.com/apache/arrow / test_cast_time64_to_int

Function test_cast_time64_to_int

python/pyarrow/tests/test_array.py:2281–2287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2279
2280@pytest.mark.numpy
2281def test_cast_time64_to_int():
2282 arr = pa.array(np.array([0, 1, 2], dtype='int64'),
2283 type=pa.time64('us'))
2284 expected = pa.array([0, 1, 2], type='i8')
2285
2286 result = arr.cast('i8')
2287 assert result.equals(expected)
2288
2289
2290@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected