ddf.history.History

class ddf.history.History(data, row_map, col_map)

Stores the historical information of a stainer so that it can printed in an organised manner.

__init__(data, row_map, col_map)

Constructor for History object

Parameters
  • data ((str, str, float) tuple) – Stores important information about Stainer executed. Tuple contains (name of stainer, message, time taken)

  • row_map ({int: int} dictionary) – Row mapping showing the relationship between the original and new row positions. Only applies to transformation for the specific stainer.

  • col_map ({int: int} dictionary) – Column mapping showing the relationship between the original and new column positions. Only applies to transformation for the specific stainer.

get_col_map()

Returns column mapping for the corresponding stainer

Returns

col_map – Mapping of previous column indices to column indices after stainer transformation.

Return type

{int: int} dictionary

get_row_map()

Returns row mapping for the corresponding stainer

Returns

row_map – Mapping of previous row indices to row indices after stainer transformation.

Return type

{int: int} dictionary

Methods

__init__(data, row_map, col_map)

Constructor for History object

get_col_map()

Returns column mapping for the corresponding stainer

get_row_map()

Returns row mapping for the corresponding stainer