8000 Safer is dtype by TomAugspurger · Pull Request #22975 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Safer is dtype #22975

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 9 commits into from
Oct 4, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hmm, try the other approach
  • Loading branch information
TomAugspurger committed Oct 3, 2018
commit af8fca2bbf26c48476624fac05e5b164c3663444
6 changes: 6 additions & 0 deletions pandas/tests/frame/test_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,3 +1030,9 @@ def test_alignment_non_pandas(self):
align(df, val, 'index')
with pytest.raises(ValueError):
align(df, val, 'columns')

def test_no_warning(self, all_arithmetic_operators):
df = pd.DataFrame({"A": [0.,0.], "B": [0., None]})
b = df['B']
with tm.assert_produces_warning(None):
getattr(df, all_arithmetic_operators)(b, 0)
0