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

Function test_timestamp_as_object_out_of_range

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

Source from the content-addressed store, hash-verified

4961
4962
4963def test_timestamp_as_object_out_of_range():
4964 # Out of range timestamps can be converted Arrow and reloaded into Pandas
4965 # with no loss of information if the timestamp_as_object option is True.
4966 df = make_df_with_timestamps()
4967 table = pa.Table.from_pandas(df)
4968 df2 = table.to_pandas(timestamp_as_object=True)
4969 tm.assert_frame_equal(df, df2)
4970
4971
4972@pytest.mark.parametrize("resolution", ["s", "ms", "us"])

Callers

nothing calls this directly

Calls 1

make_df_with_timestampsFunction · 0.85

Tested by

no test coverage detected