The beginning of some useful functions for dealing with Pandas DataFrames
The first function is an 'explode' function. The purpose of the function is to break out a pandas dataframe with one or more columns that contain lists so those columns are made of the elements of the list and the other columns in the DataFrame contain the correct corresponding values.