swn.compat.dataframe_str_na#

swn.compat.dataframe_str_na(df: DataFrame) DataFrame#

Return dataframe with consistent str-type columns.

A str-type column is detected if all rows are NA or if the non-NA rows are str-type. These are cast with pandas.StringDtype with (where feasible) na_value=pd.NA instead of NaN.