Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove comment referencing deprecated applymap
  • Loading branch information
andrewpmk committed Oct 21, 2023
commit 0460f09ff89cc083dc1a3a16e07baae74bc047a2
1 change: 0 additions & 1 deletion pandas-stubs/core/frame.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,6 @@ class DataFrame(NDFrame, OpsMixin):
) -> DataFrame: ...

# Add spacing between apply() overloads and remaining annotations
# In pandas 2.1.0 and later: applymap is renamed map, applymap is deprecated
def map(
self, func: Callable, na_action: Literal["ignore"] | None = ..., **kwargs
) -> DataFrame: ...
Expand Down
1 change: 0 additions & 1 deletion tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,6 @@ def gethead(s: pd.Series, y: int) -> pd.Series:
)


# In pandas 2.1.0 and later: applymap is renamed map, applymap is deprecated
def test_types_map() -> None:
df = pd.DataFrame(data={"col1": [2, 1], "col2": [3, 4]})
df.map(lambda x: x**2)
Expand Down