code: def _remove_nan(self, values) -> None:
      infin = np.isfinite(values)
      np.bitwise_not(infin, out=infin)
  
      if infin[0]:
          values[0] = 0.0 if len(self.value) == 0 else self.value[-1]
      for i in range(1, len(values)):
          if infin[i]:
              values[i] = values[i - 1]
  
imports: import math
  from typing import Dict, List, Optional, Union
  from datetime import datetime, timedelta
  import numpy
label_desc: Use image node_id 9 for calling the Series obj's underlying member method code with example usage: obj._remove_nan(values) without return types