Skip to content

Commit 3444da4

Browse files
code sample for pandas-dev#37415
1 parent 885e299 commit 3444da4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bisect/37415.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import pandas as pd
2+
print(pd.__version__)
3+
df = pd.DataFrame({'a': [1, 1, 1, 2, 2], 'b': [1, 2, 3, 4, 5]})
4+
df['b'] = df['b'].astype(pd.Int32Dtype())
5+
res = df.groupby('a').agg('std')
6+
print(res)

0 commit comments

Comments
 (0)