Usage

iter_together.iter_together(left_path, right_path, sep=',')[source]

Iterate over two files with the same index.

  • Assumes the left-most column in each file is the same

  • Splats the remaining rows in order so each row is a tuple of strings

Parameters
  • left_path (str) – The path to the first file (assumes file is CSV-like)

  • right_path (str) – The path to the second file (assumes file is CSV-like)

  • sep (str) – The separator used in the files

Return type

Iterable[Tuple[str, …]]