VOOZH about

URL: https://www.geeksforgeeks.org/python/python-pandas-dataframe-values/

⇱ Python | Pandas DataFrame.values - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Python | Pandas DataFrame.values

Last Updated : 20 Feb, 2019
Pandas DataFrame is a two-dimensional size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns). Arithmetic operations align on both row and column labels. It can be thought of as a dict-like container for Series objects. This is the primary data structure of the Pandas. Pandas DataFrame.values attribute return a Numpy representation of the given DataFrame.
Syntax: DataFrame.values Parameter : None Returns : array
Example #1: Use DataFrame.values attribute to return the numpy representation of the given DataFrame. Output : 👁 Image
Now we will use DataFrame.values attribute to return the numpy representation of the given DataFrame. Output : 👁 Image
As we can see in the output, the DataFrame.values attribute has successfully returned the numpy representation of the given DataFrame.   Example #2: Use DataFrame.values attribute to return the numpy representation of the given DataFrame. Output : 👁 Image
Now we will use DataFrame.values attribute to return the numpy representation of the given DataFrame.
Output : 👁 Image
As we can see in the output, the DataFrame.values attribute has successfully returned the numpy representation of the given DataFrame.
Comment