Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

Pandas DataFrame values Property

❮ DataFrame Reference


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.


❮ DataFrame Reference