function cleanseData(data) {
  return data.map(series => {
    if (!Array.isArray(series)) {
      return series;
    }
    return series.map(row => ({...row, parent: null}));
  });
}
Remove parents from tree formatted data. deep-equal doesnt play nice with data
that has circular structures, so we make every node single directional by pruning the parents.
@param {Array} data - the data object to have circular deps resolved in
@returns {Array} the sanitized data