Pandas DataFrame values Property
Example
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.
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.