-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: merging an Integer EA rasises #23262
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
Changes from all commits
1e0539d
9310361
cb2d4d1
42477c3
6a9e360
373582e
f817cad
8140ee1
c425b24
29e820d
19621e6
a69f7b7
529f88d
61f5e15
6bae6ca
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1326,6 +1326,16 @@ def test_merging_with_bool_or_int_cateorical_column(self, category_column, | |
CDT(categories, ordered=ordered)) | ||
assert_frame_equal(expected, result) | ||
|
||
def test_merge_on_int_array(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move to pandas/tests/extension/base/reshape (and use the fixtures) |
||
# GH 23020 | ||
df = pd.DataFrame({'A': pd.Series([1, 2, np.nan], dtype='Int64'), | ||
'B': 1}) | ||
result = pd.merge(df, df, on='A') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think can remove this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this does test merging on an NA key, which the generic test doesn't. So maybe leave it? |
||
expected = pd.DataFrame({'A': pd.Series([1, 2, np.nan], dtype='Int64'), | ||
'B_x': 1, | ||
'B_y': 1}) | ||
assert_frame_equal(result, expected) | ||
|
||
|
||
@pytest.fixture | ||
def left_df(): | ||
|
Uh oh!
There was an error while loading. Please reload this page.