Rezone.read#

classmethod Rezone.read(path, columns)[source]#

Read the lookup file.

Parameters:
  • path (str) – Path to the lookup file.

  • columns (dict) – Column names in the lookup file should contain 3 keys, old, new, splitting_factor. If None then ignores the header row and uses the first 3 columns in file as old, new and splitting_factor respectively.

Returns:

lookup – DataFrame object with the old, new and splitting_factor columns read from the file.

Return type:

pandas.DataFrame