Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. from pandas.api.types import union_categoricals
  2.  
  3. food = pd.Categorical(["burger king", "wendys"])
  4. food_2 = pd.Categorical(["burger king", "chipotle"])
  5.  
  6. union_categoricals([food, food_2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement