We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0d592b commit 69073c6Copy full SHA for 69073c6
bisect/37465.py
@@ -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