Skip to content

Commit dc6ef99

Browse files
committed
GH-48473: [Python] Pin legacy pandas test to nanoseconds
1 parent 41705c6 commit dc6ef99

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

python/pyarrow/tests/parquet/test_pandas.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,14 @@ def test_backwards_compatible_index_multi_level_some_named(datadir):
429429

430430
@pytest.mark.pandas
431431
def test_backwards_compatible_column_metadata_handling(datadir):
432+
dates = pd.date_range(
433+
"2017-01-01", periods=3, tz='Europe/Brussels'
434+
).as_unit("ns")
432435
expected = pd.DataFrame(
433436
{'a': [1, 2, 3], 'b': [.1, .2, .3],
434-
'c': pd.date_range("2017-01-01", periods=3, tz='Europe/Brussels')})
437+
'c': dates})
435438
expected.index = pd.MultiIndex.from_arrays(
436-
[['a', 'b', 'c'],
437-
pd.date_range("2017-01-01", periods=3, tz='Europe/Brussels')],
439+
[['a', 'b', 'c'], dates],
438440
names=['index', None])
439441

440442
path = datadir / 'v0.7.1.column-metadata-handling.parquet'

0 commit comments

Comments
 (0)