Skip to content

Commit 8352a66

Browse files
update code sample pandas-dev#39738
1 parent eac38f3 commit 8352a66

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

bisect/39738.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@
44

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

7-
result = df.sum(min_count=10)
8-
print(result)
7+
try:
8+
result = df.sum(min_count=10)
9+
except AttributeError:
10+
pass
11+
else:
12+
print(result)

0 commit comments

Comments
 (0)