pandas.StringDtype.na_value#
- property StringDtype.na_value[source]#
The missing value representation for this dtype.
This value indicates which missing value semantics are used by this dtype. Returns
np.nanfor the default string dtype with NumPy semantics, andpd.NAfor the opt-in string dtype with pandas NA semantics.Examples
>>> ser = pd.Series(["a", "b"]) >>> ser.dtype <StringDtype(na_value=nan)> >>> ser.dtype.na_value nan