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.