serial_dashboard.parsers.backfill_nans

serial_dashboard.parsers.backfill_nans(x, ncols)

Given a 2D Numpy array, right-append an array of NaNs such that there are ncols in the resulting array.

Parameters
  • x (2D Numpy array) – Array to be NaN filled.

  • ncols (int) – Number of columns in resulting array.

Returns

x_out – A 2D Numpy array, right-padded with NaNs.

Return type

2D Numpy array