MCPcopy
hub / github.com/m-bain/whisperX / interpolate_nans

Function interpolate_nans

whisperx/utils.py:470–476  ·  view source on GitHub ↗
(x, method='nearest')

Source from the content-addressed store, hash-verified

468 return writers[output_format](output_dir)
469
470def interpolate_nans(x, method='nearest'):
471 if method == "ignore":
472 return x
473 if x.notnull().sum() > 1:
474 return x.interpolate(method=method).ffill().bfill()
475 else:
476 return x.ffill().bfill()

Callers 4

alignFunction · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…