def _is_numeric_type(data):
    """
    Checks if the data is any of the numeric types.
    
    Args:
      data: data structure with dtype, i.e. pandas.Series, pandas.DataFrame
        The data whose type will be checked.
        
    Returns:
      True if the data type is numeric, false otherwise.
    """
    return "int" in data.dtype.name or "float" in data.dtype.name