Skip to content

Commit 69073c6

Browse files
add code sample for pandas-dev#37465
1 parent c0d592b commit 69073c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bisect/37465.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pandas as pd
2+
import numpy as np
3+
4+
print(pd.__version__)
5+
6+
g = np.random.default_rng(840812492384587325982704)
7+
a = pd.Series(g.integers(0, 3, size=100)).astype("category")
8+
b = pd.Series(g.integers(0, 2, size=100)).astype("category")
9+
res = pd.crosstab(a, b, margins=True, dropna=False)
10+
print(res)

0 commit comments

Comments
 (0)