class_docstr: Renames features following substitution rules.
  
  Parameters
  ----------
  mapping
      Dictionnary describing substitution rules. Keys in `mapping` that are not a feature's name are silently ignored.
  
  Examples
  --------
  
  >>> from river import compose
  
  >>> mapping = {'a': 'v', 'c': 'o'}
  >>> x = {'a': 42, 'b': 12}
  >>> compose.Renamer(mapping).transform_one(x)
  {'b': 12, 'v': 42}
class_docstr_tok: ["Renames","features","following","substitution","rules",".","Parameters","--","--","--","--","--","mapping","Dictionnary","describing","substitution","rules",".","Keys","in","`","mapping","`","that","are","not","a","feature","'s","name","are","silently","ignored",".","Examples","--","--","--","--",">",">",">","from","river","import","compose",">",">",">","mapping","=","{","'","a","'",":","'","v","'",",","'","c","'",":","'","o","'","}",">",">",">","x","=","{","'","a","'",":","42",",","'","b","'",":","12","}",">",">",">","compose.Renamer","(","mapping",")",".transform_one","(","x",")","{","'","b","'",":","12",",","'","v","'",":","42","}"]
code: def __init__(self, mapping: dict[str, str]):
      self.mapping = mapping
  
file_path: river/river/compose/renamer.py
imports: from __future__ import annotations
  from river import base
label_desc: Use image node_id 1 to create a new Renamer object from inherited base classes: base with example: obj = Renamer(mapping)