Pandas DataFrame values Property
ExampleGet your own Python Server
Return the all values in the DataFrame:
import pandas as pd
df = pd.read_csv('data.csv')
print(df.values)
Try it Yourself »
Definition and Usage
The values
property returns all values in
the DataFrame.
The return value is a 2-dimensional array with one array for each row.
Syntax
dataframe.values
Return Value
A NumPy ndarray object with all the values.