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(?)/API: pd.NA + bytes raises TypeError #49108

Closed
mroeschke opened this issue Oct 15, 2022 · 0 comments · Fixed by #49155
Closed

BUG(?)/API: pd.NA + bytes raises TypeError #49108

mroeschke opened this issue Oct 15, 2022 · 0 comments · Fixed by #49155
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Strings String extension data type and string data
Milestone

Comments

@mroeschke
Copy link
Member

In [1]: pd.NA + "a"
Out[1]: <NA>

In [2]: pd.NA + b"a"
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 pd.NA + b"a"

TypeError: unsupported operand type(s) for +: 'NAType' and 'bytes'

Unless I'm missing something, shouldn't In [2] return pd.NA?

@mroeschke mroeschke added Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Strings String extension data type and string data labels Oct 15, 2022
@phofl phofl added this to the 2.0 milestone Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Strings String extension data type and string data
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants