8000 BUG: DataFrame.merge(suffixes=) does not respect None by charlesdong1991 · Pull Request #24819 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: DataFrame.merge(suffixes=) does not respect None #24819

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

Merged
merged 11 commits into from
Feb 6, 2019
Prev Previous commit
Next Next commit
fix test error
  • Loading branch information
charlesdong1991 committed Feb 4, 2019
commit 441e9a519a63d59f541d79500ed353792d2c486b
2 changes: 1 addition & 1 deletion pandas/tests/reshape/merge/test_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,6 @@ def test_merge_suffix_none_error(col1, col2, suffixes):
b = pd.DataFrame({col2: [3, 4, 5]})

# TODO: might reconsider current raise behaviour, see issue 24782
msg = "'NoneType' object is not iterable"
msg = "iterable"
with pytest.raises(TypeError, match=msg):
pd.merge(a, b, left_index=True, right_index=True, suffixes=suffixes)
0