diff --git a/python/pyarrow/tests/parquet/test_basic.py b/python/pyarrow/tests/parquet/test_basic.py index 67515c5e247..f615e39c21c 100644 --- a/python/pyarrow/tests/parquet/test_basic.py +++ b/python/pyarrow/tests/parquet/test_basic.py @@ -230,11 +230,11 @@ def test_empty_table_no_columns(): def test_write_nested_zero_length_array_chunk_failure(): # Bug report in ARROW-3792 - cols = OrderedDict( + cols = dict( int32=pa.int32(), list_string=pa.list_(pa.string()) ) - data = [[], [OrderedDict(int32=1, list_string=('G',)), ]] + data = [[], [dict(int32=1, list_string=('G',)), ]] # This produces a table with a column like # )> diff --git a/python/pyarrow/tests/test_compute.py b/python/pyarrow/tests/test_compute.py index 97f694df1fc..dc35fc6619c 100644 --- a/python/pyarrow/tests/test_compute.py +++ b/python/pyarrow/tests/test_compute.py @@ -2561,12 +2561,13 @@ def test_assume_timezone(): f"timezone '{timezone}'"): pc.assume_timezone(ambiguous_array, options=options_ambiguous_raise) - expected = ambiguous.tz_localize(timezone, ambiguous=[True, True, True]) + expected = ambiguous.tz_localize(timezone, ambiguous=np.array([True, True, True])) result = pc.assume_timezone( ambiguous_array, options=options_ambiguous_earliest) result.equals(pa.array(expected)) - expected = ambiguous.tz_localize(timezone, ambiguous=[False, False, False]) + expected = ambiguous.tz_localize( + timezone, ambiguous=np.array([False, False, False])) result = pc.assume_timezone( ambiguous_array, options=options_ambiguous_latest) result.equals(pa.array(expected)) diff --git a/python/pyarrow/tests/test_pandas.py b/python/pyarrow/tests/test_pandas.py index f0bc4a31f34..4af077ea0ef 100644 --- a/python/pyarrow/tests/test_pandas.py +++ b/python/pyarrow/tests/test_pandas.py @@ -4963,7 +4963,7 @@ def test_does_not_mutate_timedelta_dtype(): assert np.dtype(np.timedelta64) == expected - df = pd.DataFrame({"a": [np.timedelta64()]}) + df = pd.DataFrame({"a": [np.timedelta64("s")]}) t = pa.Table.from_pandas(df) t.to_pandas()