Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Jun 13, 2024
1 parent 8073b6b commit 88f47b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/pyarrow/tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4741,12 +4741,12 @@ def make_df_with_timestamps():
# Some of the milliseconds timestamps deliberately don't fit in the range
# that is possible with nanosecond timestamps.
df = pd.DataFrame({
'dateTimeMs': np.array([
'dateTimeMs': [
np.datetime64('0001-01-01 00:00', 'ms'),
np.datetime64('2012-05-02 12:35', 'ms'),
np.datetime64('2012-05-03 15:42', 'ms'),
np.datetime64('3000-05-03 15:42', 'ms'),
], dtype=object),
],
'dateTimeNs': [
np.datetime64('1991-01-01 00:00', 'ns'),
np.datetime64('2012-05-02 12:35', 'ns'),
Expand All @@ -4757,7 +4757,6 @@ def make_df_with_timestamps():
df['dateTimeMs'] = df['dateTimeMs'].astype('object')
# Not part of what we're testing, just ensuring that the inputs are what we
# expect.
# if Version(pd.__version__) < Version("3.0.0.dev0"):
assert (df.dateTimeMs.dtype, df.dateTimeNs.dtype) == (
# O == object, M8[ns] == timestamp64[ns]
np.dtype("O"), np.dtype("M8[ns]")
Expand Down

0 comments on commit 88f47b8

Please sign in to comment.