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

string match returns NaN on non strings #6609

Closed
hayd opened this issue Mar 12, 2014 · 0 comments · Fixed by #6611
Closed

string match returns NaN on non strings #6609

hayd opened this issue Mar 12, 2014 · 0 comments · Fixed by #6611
Assignees
Labels
Bug Strings String extension data type and string data
Milestone

Comments

@hayd
Copy link
Contributor

hayd commented Mar 12, 2014

Or just not respecting na flag.

In [44]: s = pd.Series(['a', 0, np.nan])

In [45]: s.str.contains('a', na=False)
Out[45]:
0     True
1    False
2    False
dtype: bool

In [46]: s.str.match('a', na=False)
Out[46]:
0    True
1     NaN
2     NaN
dtype: object
@hayd hayd added this to the 0.14.0 milestone Mar 12, 2014
@hayd hayd added the Strings label Mar 12, 2014
@hayd hayd self-assigned this Mar 12, 2014
@jreback jreback added the Bug label Mar 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Strings String extension data type and string data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants