Easy Beginner Solution || Best Solution 
IntuitionThe problem requires retrieving the dimensions of a given Pandas DataFrame. The shape attribute of a DataFrame returns a tuple (rows, columns), which d
# Intuition
The problem requires retrieving the dimensions of a given Pandas DataFrame. The shape attribute of a DataFrame returns a tuple (rows, columns), which directly gives us the required information.

# Approach
1. Use shape attribute: The players.shape provides a tuple containing the number of rows and columns in the DataFrame.
2. Convert to list: Since the expected output format is a list, we simply convert the tuple to a list using list(players.shape).
3. Return the result: The function returns the list [rows, columns], where rows represents the number of rows and columns represents the number of columns in the DataFrame.

# Complexity
- Time complexity:
**O(1)** — Accessing the shape attribute is a constant-time operation.

- Space complexity:
**O(1)** — Only a single list of size two is created and returned, using negligible extra space.


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

def getDataframeSize(players: pd.DataFrame) -> List[int]:

    return list(players.shape)
    
```
['Pandas']