Closed agstephens closed 4 years ago
def _map_values(self, df): mappers = _get_mappers() found_cols = [_ for _ in df.columns] for col, mapper in mappers: if col in found_cols: # log.warn(f'Mapping: {col}, with {mapper}') df[col].replace(mapper, inplace=True)
Test that output is identical is we use:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.replace.html
Tested and implemented. The resulting DF is the same.
Test that output is identical is we use:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.replace.html