# tf.contrib.learn.extract_pandas_labels

<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#L123-L153) |

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

    tf.contrib.learn.extract_pandas_labels(
        labels
    )

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

<br />

<br />

<br />

| ## Args ||
|---|---|
| `labels` | `pandas.DataFrame` or `pandas.Series` containing one column of labels to be extracted. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A numpy `ndarray` of labels from the DataFrame. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | if more than one column is found or type is not int, float or bool. |

<br />