pandas.DataFrame.values() Function with example in python
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)