🚀 Python3: Get DataFrame Dimensions | 85.78% Runtime
IntuitionThe task requires finding the dimensions of a DataFrame - specifically the number of rows and columns. In pandas, this is a basic operation using the l
# Intuition
The task requires finding the dimensions of a DataFrame - specifically the number of rows and columns. In pandas, this is a basic operation using the length of the DataFrame and its columns attribute.

# Approach
1. Get number of rows using `len()` on the DataFrame itself
2. Get number of columns using `len()` on the DataFrame's columns
3. Return both values in a list where:
   - First element is number of rows
   - Second element is number of columns

# Complexity
- Time complexity: O(1) since we're just accessing DataFrame metadata attributes
- Space complexity: O(1) as we only create a small list with two integers

# Code
```python3 []
import pandas as pd
def getDataframeSize(players: pd.DataFrame) -> List[int]:
    return [len(players), len(players.columns)]
```
['Pandas']