pipette.fill_lines

pipette.fill_lines(lines: list[str], sep: str = '\t', fill: str = 'NA') list[str]

Pad delimited lines so all have equal field count.

Parameters:
  • lines (list of str) – Input lines.

  • sep (str) – Field separator.

  • fill (str) – Value to use for padding.

Returns:

Lines with equal number of fields.

Return type:

list of str