def series_is_type(series, type):
    """Checks whether the given column is of the provided python type

    Args:
        series (pd.Series):
        type: A python type

    Returns:
        bool
    """
    idx = series.first_valid_index()
    if idx == None:
        return False
    else:
        return isinstance(series.loc[idx], type)