Skip to content

Commit

Permalink
update code sample pandas-dev#39738
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Feb 12, 2021
1 parent eac38f3 commit 8352a66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bisect/39738.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@

df = pd.DataFrame({"x": [1, 2, 3], "y": [4, 5, 6]})

result = df.sum(min_count=10)
print(result)
try:
result = df.sum(min_count=10)
except AttributeError:
pass
else:
print(result)

0 comments on commit 8352a66

Please sign in to comment.