psweep.psweep.df_ensure_dtypes

psweep.psweep.df_ensure_dtypes#

psweep.psweep.df_ensure_dtypes(df, fill_value=<NA>)[source]#

Make sure that df’s dtype is object. Convert any pd.isna() values to fill_value.

This is part of our attempt to prevent pandas from doing type inference and conversion.