From f040b46b01ab8c3ecd182578a5ed277eeaceb45e Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Fri, 18 Dec 2020 15:02:29 +0000 Subject: [PATCH] code sample for #38556 --- bisect/38556.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 bisect/38556.py diff --git a/bisect/38556.py b/bisect/38556.py new file mode 100644 index 0000000000000..6324b78861fbe --- /dev/null +++ b/bisect/38556.py @@ -0,0 +1,8 @@ +import pandas as pd + +print(pd.__version__) + +res = pd.CategoricalIndex(["A", "B", "C", "A", "B"]).get_indexer( + pd.CategoricalIndex(["B", "C", "D", "E"]) +) +print(res)