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 · Fixed by #24045
Closed

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

h-vetinari opened this issue Dec 2, 2018 · 0 comments · Fixed by #24045
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Strings String extension data type and string data
Milestone

Comments

@h-vetinari
Copy link
Contributor

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')
@jreback jreback added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Strings String extension data type and string data labels Dec 2, 2018
@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
Labels
Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Strings String extension data type and string data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants