What is the idiomatic Pandas way to expand a column containing a JSON encoded array of observations into additional rows?
In the example below Out[3] is a DataFrame containing loan data. There is one row per loan. Columns Loan ID, Start Date, End Date, and Amount do not vary over the life of the loan. Zero or more date-stamped payments are encoded into the Payments column as a JSON (string) array.
The target output in Out[5] shows the goal. One or more rows per original row, with each payment from Payments resulting in the creation of a new row in the output.
I've done this two ways: with iterrows, which is sane-looking and easy to read, and with a convoluted, somewhat handwavy approach where I pull the fixed attributes into the index to preserve them, then melt and re-index.
There must be a better way! Please share the secrets of the pandas masters :)
