Created
August 9, 2019 21:40
-
-
Save kxzk/1a4dee65a7a3add1d877f6bf80fa5233 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pandas.api.types import union_categoricals | |
food = pd.Categorical(["burger king", "wendys"]) | |
food_2 = pd.Categorical(["burger king", "chipotle"]) | |
union_categoricals([food, food_2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment