BUG: 1.5rc raises TypeError when passing tuple to series.str.startswith() #48575
Closed
3 tasks done
Labels
Bug
Needs Triage
Issue that has not been reviewed by a pandas team member
Regression
Functionality that used to work in a prior pandas version
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Example works as expected in 1.4.4. After
pip install --upgrade --pre pandas==1.5.0rc0
, the same code raisesstack trace
I guess the ability to pass tuples was never documented? #38281
Expected Behavior
Should return boolean series.
Installed Versions
INSTALLED VERSIONS
commit : 224458e
python : 3.10.6.final.0
python-bits : 64
OS : Darwin
OS-release : 21.6.0
Version : Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8
pandas : 1.5.0rc0
numpy : 1.23.2
pytz : 2022.1
dateutil : 2.8.2
setuptools : 63.2.0
pip : 22.1
Cython : 0.29.26
pytest : 7.1.2
hypothesis : 6.42.0
...
xlrd : 2.0.1
xlwt : 1.3.0
zstandard : None
tzdata : None
The text was updated successfully, but these errors were encountered: