migrating existing R code to help "melt" tables into a long format from the excellent R "Reshape" library
pandas.melt method has similar properties, but the execution is a little more convoluted because we dont have dplyr equivalents
The first of many R to python migrations. Also to add to the fun, let's add it to aws-lambda and saml authentication simultaneously.
Jupyter Notebook