Skip to content

Commit 70e50f3

Browse files
committed
fix slow tests
1 parent 815c8f9 commit 70e50f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/whatsnew/v2.1.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enhancement1
2525
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2626

2727
When given a callable, :meth:`Series.map` applies the callable to all elements of the :class:`Series`.
28-
Similarly, :meth:`DataFrame.map` (:meth:`DataFrame.applymap`) applies the callable to all elements of the :class:`DataFrame`,
28+
Similarly, :meth:`DataFrame.map` (previously named :meth:`DataFrame.applymap`) applies the callable to all elements of the :class:`DataFrame`,
2929
while :meth:`Index.map` applies the callable to all elements of the :class:`Index`.
3030

3131
Frequently, it is not desirable to apply the callable to nan-like values of the array and to avoid doing
@@ -67,7 +67,7 @@ Also, note that :meth:`Categorical.map` implicitly has had its ``na_action`` set
6767
This has been deprecated and will :meth:`Categorical.map` in the future change the default
6868
to ``na_action=None``, like for all the other array types.
6969

70-
Notice also that :meth:`DataFrame.applymap` has been renamed to :meth:`DataFrame.map` (:issue:`52353`).
70+
Notice also that in this version, :meth:`DataFrame.applymap` has been renamed to :meth:`DataFrame.map` (:issue:`52353`).
7171

7272
.. _whatsnew_210.enhancements.other:
7373

pandas/tests/io/test_html.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ def try_remove_ws(x):
682682
"Hamilton Bank, NA",
683683
"The Citizens Savings Bank",
684684
]
685-
dfnew = df.applymap(try_remove_ws).replace(old, new)
686-
gtnew = ground_truth.applymap(try_remove_ws)
685+
dfnew = df.map(try_remove_ws).replace(old, new)
686+
gtnew = ground_truth.map(try_remove_ws)
687687
converted = dfnew
688688
date_cols = ["Closing Date", "Updated Date"]
689689
converted[date_cols] = converted[date_cols].apply(to_datetime)

0 commit comments

Comments
 (0)