Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
series.str.startswith(tuple)
(#48587)
* accept both str and tuple[str, ...] in series.str.(starts|ends)with also add type hints and update doc strings to note pat accepts tuple * parametrize test_startswith() and test_endswith() to include pat as tuple * change na type hint to Scalar | None + add tuple usage examples
- Loading branch information
Showing
3 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters