Skip to content
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

BUG: .str.cat for all-na corner case #24044

Closed
h-vetinari opened this issue Dec 2, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@h-vetinari
Copy link
Contributor

commented Dec 2, 2018

A corner case that wrongly casts to FloatIndex if the result is all-na (e.g. due to alignment)

import pandas as pd
>>> idx = pd.Index(['a', 'b', 'c'])
>>> idz = pd.Index(['d', 'e', 'f'])
>>> idx.str.cat(idz, join='left')
Float64Index([nan, nan, nan], dtype='float64')

@h-vetinari h-vetinari referenced this issue Dec 2, 2018

Merged

BUG: all-na corner case for str.cat #24045

4 of 4 tasks complete

@jreback jreback added this to the 0.24.0 milestone Dec 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.