pandas.DataFrame.values() Function with example in python

Spread the love

pandas.DataFrame.values(): This function return a Numpy representation of the DataFrame.

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

Returns:
numpy.ndarray
The values of the DataFrame.

import pandas as pd d = {'exp': [1, 2,3], 'salary': [10000, 15000,20000]} df = pd.DataFrame(data=d) print(df.values)

 

admin

admin

Leave a Reply

Your email address will not be published. Required fields are marked *