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

Function truncate

python/pyarrow/tests/test_pandas.py:4106–4106  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

4104 # This is used for verifying timezone conversion to micros are not
4105 # important
4106 def truncate(x): return x.replace(microsecond=0)
4107 else:
4108 def truncate(x): return x
4109 arr = pa.array([ts], type=pa.timestamp(unit))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected