I am working with 1d numpy arrays, first doing some math then saving everything to a single csv file. The data sets are often of different lengths and I cannot flatten them together. This is the best I could come up with but there must be a more elegant way.I am working with 1d numpy arrays, first doing