Skip to content

Commit 149fc68

Browse files
committed
fix failures
1 parent bf75a59 commit 149fc68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/source/whatsnew/v2.1.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Other enhancements
3434
- Improve error message when setting :class:`DataFrame` with wrong number of columns through :meth:`DataFrame.isetitem` (:issue:`51701`)
3535
- Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string column names (:issue:`51787`)
3636
- :class:`api.extensions.ExtensionArray` now has a :meth:`~api.extensions.ExtensionArray.map` method (:issue:`51809`)
37-
- :meth:`DataFrame.applymap` now uses the :meth:`~api.extensions.ExtensionArray.map` method for of the underlying arrays for :class:`api.extensions.ExtensionArray` instances (:issue:`52219`)
3837
- Improve error message when having incompatible columns using :meth:`DataFrame.merge` (:issue:`51861`)
3938
- Improved error message when creating a DataFrame with empty data (0 rows), no index and an incorrect number of columns. (:issue:`52084`)
39+
- :meth:`DataFrame.applymap` now uses the :meth:`~api.extensions.ExtensionArray.map` method for of the underlying arrays for :class:`api.extensions.ExtensionArray` instances (:issue:`52219`)
4040
- :meth:`arrays.SparseArray.map` now supports ``na_action`` (:issue:`52096`).
4141

4242
.. ---------------------------------------------------------------------------

pandas/tests/apply/test_frame_apply.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,10 @@ def test_applymap_float_object_conversion(val):
546546
assert result == object
547547

548548

549-
@pytest.mark.parametrize("na_action", ["ignore", None])
549+
@pytest.mark.parametrize("na_action", [None, "ignore"])
550550
def test_applymap_keeps_dtype(na_action):
551551
# GH52219
552-
arr = pd.Series(["a", np.nan, "b"])
552+
arr = Series(["a", np.nan, "b"])
553553
sparse_arr = arr.astype(pd.SparseDtype(object))
554554
df = pd.DataFrame(data={"a": arr, "b": sparse_arr})
555555

0 commit comments

Comments
 (0)