I have a dataset about D&D Characters that looks something like this
Race Class Level AC
Human Fighter | Wizard 10 15
Elf Wizard 8 10
Human Rogue 6 12
Dwarf Barbarian 15 18
I want to separate the classes that are multiclassing indicated by the "|" Also If a character doesn't multiclass, I want to place an "NA" or "None" in that slot
Race Primary_Class Level AC Subclass Multiclass
Human Fighter 10 15 Wizard 1
Elf Wizard 8 10 NA 0
Human Rogue 6 12 NA 0
Dwarf Barbarian 15 18 NA 0
Is there a clean way to do this?