DAY-2 | Pandas | Size of Data Frame
ApproachUse built-in function
shape
Complexity

Time complexity: O(1)


Space complexity: O(1)

Code
# Approach
Use built-in function 
- shape

# Complexity
- Time complexity: O(1)

- Space complexity: O(1)

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

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