-
-
Notifications
You must be signed in to change notification settings - Fork 18k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
series.str.cat(series.str)
is concatenating only the largest string
#28277
Comments
I'm not sure what's going on, but that's not my expected output. |
I'm very new to python and there might be some misunderstanding on my part. I believed the problem happens when passing StringMethods into This happens because StringMethods implements the iterator protocol (StringMethod's iterator, is_list_like implementation) |
For the OP you probably just want |
@WillAyd Thanks! Will give it a go |
take |
Like suggested in the PR discussion, I will implement a DeprecationWarning for |
Fyi: A |
@SaturnFromTitan this can still be addressed independently right? |
Code Sample, a copy-pastable example if possible
Problem description
series.str.cat(series.str)
is concatenating only the largest string in the series but it should concatenate all the strings element wise.Expected Output
Output of
pd.show_versions()
In [2]: pandas.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-862.14.4.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: None
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 5.1.2
pip: 19.2.3
setuptools: 41.2.0
Cython: 0.29.13
numpy: 1.17.1
scipy: None
pyarrow: 0.14.1
xarray: None
IPython: 7.8.0
sphinx: 2.2.0
patsy: None
dateutil: 2.8.0
pytz: 2019.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: 0.3.4
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: