(
        df: pd.DataFrame, dtypes: Dict[int, str], columns_ignored: Set[int]
)
return df
Guess data type for variables according to values.

    Parameters
    ----------
    df
        Data frame
    dtypes
        The dictionary with data types set by user. We will guess values only
        for columns that does not have data type defined.
    columns_ignored
        List with indices of ignored columns. Ignored columns are skipped.

    Returns
    -------
    A data frame with changed dtypes according to the strategy.
Guess data type for variables according to values.
Guess data type for variables according to values .
def guess_types(
        df: pd.DataFrame, dtypes: Dict[int, str], columns_ignored: Set[int]
) -> pd.DataFrame:
    """
    Guess data type for variables according to values.

    Parameters
    ----------
    df
        Data frame
    dtypes
        The dictionary with data types set by user. We will guess values only
        for columns that does not have data type defined.
    columns_ignored
        List with indices of ignored columns. Ignored columns are skipped.

    Returns
    -------
    A data frame with changed dtypes according to the strategy.
    """
    for i, col in enumerate(df):
        # only when automatic is set in widget dialog
        if dtypes.get(i, None) is None and i not in columns_ignored:
            df[col] = guess_data_type(df[col])
    return df
def guess_types ( df : pd . DataFrame , dtypes : Dict [ int , str ] , columns_ignored : Set [ int ] ) -> pd . DataFrame : for i , col in enumerate ( df ) : # only when automatic is set in widget dialog if dtypes . get ( i , None ) is None and i not in columns_ignored : df [ col ] = guess_data_type ( df [ col ] ) return df