Пример #1
0
def _data_type_filter(X, y):
    """Filter data types into acceptable format"""
    if HAS_PANDAS:
        X = extract_pandas_data(X)
        y = extract_pandas_labels(y)
    if HAS_DASK:
        X = extract_dask_data(X)
        y = extract_dask_labels(y)
    return X, y
def _data_type_filter(X, y):
    """Filter data types into acceptable format"""
    if HAS_DASK:
        X = extract_dask_data(X)
        y = extract_dask_labels(y)
    if HAS_PANDAS:
        X = extract_pandas_data(X)
        y = extract_pandas_labels(y)
    return X, y