Python Pandas and D&D Monsters
As you may be aware the Dungeon Brawl application I’ve been working on defines monsters in YaML format (check out the data/monsters directory) .
I thought it would be interesting to load this data in to Pandas and do a bit of data analysis.
Loading Data While in the Dungeon Brawl repository I started up an ipython shell, then import a couple libraries:
In [1]: import yaml In [2]: import glob In [3]: import pandas Next I need to find each of my monster’s YaML documents, these files reside in the data directory.