Skip to main content
`Ctrl`+`K`

# pandas.StringDtype.na_value

property StringDtype.na_value

  The missing value representation for this dtype.

  This value indicates which missing value semantics are used by this dtype. Returns `np.nan` for the default string dtype with NumPy semantics, and `pd.NA` for the opt-in string dtype with pandas NA semantics.

  See also

  `isna`

    Detect missing values.

  `NA`

    Missing value indicator for nullable dtypes.

  Examples

      >>> ser = pd.Series(["a", "b"])
      >>> ser.dtype
      <StringDtype(na_value=nan)>
      >>> ser.dtype.na_value
      nan