cf.List.pad_missing

List.pad_missing(*args, **kwargs)[source]

Pad an axis with missing data.

Parameters
axis: int

Select the axis for which the padding is to be applied.

pad_width: sequence of int, optional

Number of values to pad before and after the edges of the axis.

to_size: int, optional

Pad the axis after so that the new axis has the given size.

inplace: bool, optional

If True then do the operation in-place and return None.

Returns
List or None

The List with padded data, or None if the operation was in-place.