Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dimensions of dataset in python

DIMENSIONS OF DATASET IN PYTHON:

Syntax: dataframe.size
Return : Returns size of dataframe/series which is equivalent to 
total number of elements. That is rows x columns.

Syntax: dataframe.shape
Return : Returns tuple of shape (Rows, columns) of dataframe/series

Syntax: dataframe.ndim
Return : Returns dimension of dataframe/series. 
1 for one dimension (series),
2 for two dimension (dataframe)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #dimensions #dataset #python
ADD COMMENT
Topic
Name
1+4 =