pyanno4rt.tools._replace_nan

NaN replacement.

Overview

Function

replace_nan(elements, value)

Replace NaN in an iterable by a specific value.

Functions

pyanno4rt.tools._replace_nan.replace_nan(elements, value)[source]

Replace NaN in an iterable by a specific value.

Parameters:
  • elements (iterable) – Iterable over which to loop.

  • value (arbitrary) – Value by which to replace NaNs.

Returns:

Generator with the replaced elements.

Return type:

generator