Number of rows and columns
Intuition
Understanding the problem: Determine the need to find the dimensions of the DataFrame.
Key focus: Use a simple and efficient way to retrieve the size
## Intuition
- **Understanding the problem**: Determine the need to find the dimensions of the DataFrame.
- **Key focus**: Use a simple and efficient way to retrieve the size of the DataFrame.

## Approach
- **Library import**: Import the required pandas library.
- **Function definition**: Define the function `getDataframeSize` which takes a DataFrame as input.
- **Retrieve dimensions**: Use the `shape` attribute of the DataFrame to get the number of rows and columns.
- **Return the result**: Return the dimensions as a list.

## Complexity
- **Time complexity**: 
  - The operation to get the shape of the DataFrame is `O(1)`, as it directly accesses the metadata.
- **Space complexity**: 
  - The space complexity is also `O(1)`, as the operation does not use additional space beyond storing the dimensions.

## Code
```python
import pandas as pd
from typing import List

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