Inbuilt Function || List || 1 Line Solution😎😎
IntuitionThe goal of this function is to return the size of the players DataFrame in terms of its number of rows and columns. The shape attribute of a pandas.Da
# Intuition
The goal of this function is to return the size of the players DataFrame in terms of its number of rows and columns. The shape attribute of a pandas.DataFrame provides a tuple containing the number of rows and columns of the DataFrame.

# Approach
1. Input: The function takes in a pandas.DataFrame called players.

2. Using shape:

* The shape attribute of the DataFrame returns a tuple where:
* The first value represents the number of rows.
* The second value represents the number of columns.
3. Conversion to List:

* The function converts this tuple to a list using list(players.shape).
4. Return:

* The function returns a list with two integers: the number of rows and the number of columns.
# Complexity
- Time complexity: O(1)
- Space complexity: O(1)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```pythondata []
import pandas as pd

def getDataframeSize(players: pd.DataFrame) -> List[int]:
        return list(players.shape)
```
['Pandas']