networkcommons.methods.translate_res
- networkcommons.methods.translate_res(untranslated_network, att, mapping_dict)
Translates the network and attribute table based on the given mapping dataframe.
- Parameters:
network (networkx.DiGraph) – The network to be translated.
att (pandas.DataFrame) – The attribute table to be translated.
mapping_df (pandas.DataFrame) – The mapping dataframe containing the
information. (translation)
- Returns:
The translated network. att (pandas.DataFrame): The translated attribute table.
- Return type:
network (networkx.DiGraph)