Python package df2onehot is to convert a pandas dataframe into a stuctured dataframe.
pip install df2onehot