You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.str.startswith(..., na=False) and .str.endswith should make missing values False when the calling series is of type categorical just like it does for string series.
dlimpid
changed the title
BUG: .str.startswith(..., na=False) consistency between categorical and object series (again)
BUG: .str.startswith(..., na=False) consistency between categorical and string series (again)
Sep 9, 2020
Code Sample, a copy-pastable example
Problem description
.str.startswith(..., na=False)
and.str.endswith
should make missing valuesFalse
when the calling series is of type categorical just like it does for string series.Similar to #22158, but
.str.contains
works here.Expected Output
Output of
pd.show_versions()
Using conda env with
conda create -n pandas112 -c conda-forge pandas=1.1.2
INSTALLED VERSIONS
commit : 2a7d332
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : Korean_Korea.949
pandas : 1.1.2
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.2.3
setuptools : 49.6.0.post20200814
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: