# tf.contrib.learn.extract_pandas_data

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/learn/python/learn/learn_io/pandas_io.py#L76-L104) |

Extract data from pandas.DataFrame for predictors. (deprecated)

    tf.contrib.learn.extract_pandas_data(
        data
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Please access pandas data directly.

Given a DataFrame, will extract the values and cast them to float. The
DataFrame is expected to contain values of type int, float or bool.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `data` | `pandas.DataFrame` containing the data to be extracted. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A numpy `ndarray` of the DataFrame's values as floats. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if data contains types other than int, float or bool. |

<br />