Data.insert_rows

Data.insert_rows(row, new_data)

Insert new_data into the data array at position row. This is a wrapper for numpy.insert.

Parameters:
  • row (int) – Data row to insert into

  • new_data (numpy array) – An array with an equal number of columns as the main data array containing the new row(s) of data to insert

Returns:

self – A copy of the modified DataFile object