acidbase.str_replace_na

acidbase.str_replace_na(x: list[str | None], replace: str = 'NA') list[str]

Replace None values with a placeholder string.

Parameters:
  • x (list[str | None]) – Input list, possibly containing None.

  • replace (str) – Placeholder used in place of None.

Returns:

x with every None replaced by replace.

Return type:

list[str]