Beats 92% 😲 || One-Line Self Explanatory Solution ⚡💥 || O(1) Time complexity 😍
IntuitionThe problem requires finding the number of rows and columns in a given Pandas DataFrame.
Pandas provides built-in attributes to efficiently determine t
# Intuition
The problem requires finding the number of rows and columns in a given Pandas DataFrame.  
Pandas provides built-in attributes to efficiently determine the shape of a DataFrame.

# Approach
1. Use `players.index.size` to get the number of rows in the DataFrame.
2. Use `players.columns.size` to get the number of columns in the DataFrame.
3. Store both values in a list and return it.

# Complexity
- **Time complexity:**  
  - Accessing `index.size` and `columns.size` takes **O(1)** since they are direct attribute lookups.
  - **Overall:** $$O(1)$$.

- **Space complexity:**  
  - The function returns a list of two integers, which takes **O(1)** space.
  - **Overall:** $$O(1)$$.

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

def getDataframeSize(players: pd.DataFrame) -> List[int]:
    lst=[players.index.size,players.columns.size]
    return lst
    
```
['Python3', 'Pandas']