parameters: (x, y)
return_statement: return x, y
docstring: Filter data types into acceptable format.
docstring_summary: Filter data types into acceptable format.
docstring_tokens: Filter data types into acceptable format .
function: def _data_type_filter(x, y):
    """Filter data types into acceptable format."""
    if HAS_DASK:
      x = extract_dask_data(x)
      if y is not None:
        y = extract_dask_labels(y)
    if HAS_PANDAS:
      x = extract_pandas_data(x)
      if y is not None:
        y = extract_pandas_labels(y)
    return x, y
function_tokens: def _data_type_filter ( x , y ) : if HAS_DASK : x = extract_dask_data ( x ) if y is not None : y = extract_dask_labels ( y ) if HAS_PANDAS : x = extract_pandas_data ( x ) if y is not None : y = extract_pandas_labels ( y ) return x , y