def _fix_int_dtypes(self, df: pd.DataFrame) -> None:
    '\n        Mutate DataFrame to set dtypes for int columns containing NaN values."\n        '
    for col in df:
        if (('float' in df[col].dtype.name) and df[col].hasnans):
            notna_series = df[col].dropna().values
            if np.isclose(notna_series, notna_series.astype(int)).all():
                df[col] = np.where(df[col].isnull(), None, df[col])
                df[col] = df[col].astype(pd.Int64Dtype())
Mutate DataFrame to set dtypes for int columns containing NaN values."
def _fix_int_dtypes(self, df: pd.DataFrame) -> None:
    '\n        \n        '
    for col in df:
        if (('float' in df[col].dtype.name) and df[col].hasnans):
            notna_series = df[col].dropna().values
            if np.isclose(notna_series, notna_series.astype(int)).all():
                df[col] = np.where(df[col].isnull(), None, df[col])
                df[col] = df[col].astype(pd.Int64Dtype())