Converted data sets to pandas DataFrames to handle unequal matrix shapes.