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: www.geeksforgeeks.org