code: def time_replace_list(self, inplace):
      self.df.replace([np.inf, -np.inf], np.nan, inplace=inplace)
  
file_path: pandas/asv_bench/benchmarks/replace.py
imports: import numpy
  import pandas
  from .pandas_vb_common import setup
label_desc: Use image node_id 2 for calling the ReplaceList obj's underlying member method code with example usage: obj.time_replace_list(inplace) without return types