Skip to content

Commit

Permalink
code sample for pandas-dev#38556
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Dec 18, 2020
1 parent bf40fc2 commit f040b46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bisect/38556.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f040b46

Please sign in to comment.