w3resource

Pandas DataFrame property: values

DataFrame - values property

The values property is used to get a Numpy representation of the DataFrame.

Only the values in the DataFrame will be returned, the axes labels will be removed.

Syntax:

DataFrame.values

Returns: numpy.ndarray
The values of the DataFrame.

Example:


Download the Pandas DataFrame Notebooks from here.

Previous: DataFrame - select_dtypes() function
Next: DataFrame - axes property



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/pandas/dataframe/dataframe-values.php