Skip to content

Commit 59b9e12

Browse files
committed
decimal32->decimal128
1 parent 84caa8c commit 59b9e12

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def _cast_pointwise_result(self, values) -> ArrayLike:
442442
if pa.types.is_null(arr.type):
443443
if lib.infer_dtype(values) == "decimal":
444444
# GH#62522; the specific decimal precision here is arbitrary
445-
arr = arr.cast(pa.decimal32(1))
445+
arr = arr.cast(pa.decimal128(1))
446446
if pa.types.is_duration(arr.type):
447447
# workaround for https://github.com/apache/arrow/issues/40620
448448
result = ArrowExtensionArray._from_sequence(values)

pandas/tests/extension/test_arrow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3702,7 +3702,6 @@ def test_pow_with_all_na_float():
37023702
tm.assert_series_equal(result, expected)
37033703

37043704

3705-
@pytest.mark.xfail(pa_version_under14p0, reason="decimal32 not implemented")
37063705
def test_cast_pontwise_result_decimal_nan():
37073706
# GH#62522 we don't want to get back null[pyarrow] here
37083707
ser = pd.Series([], dtype="float64[pyarrow]")

0 commit comments

Comments
 (0)