Simple solution that beats 95.13% of users.
IntuitionThe problem asks us to get the total numbers of rows and columns as an array. At first I tried using the DataFrame.size method but it returns the total
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->
The problem asks us to get the total numbers of rows and columns as an array. At first I tried using the `DataFrame.size` method but it returns the total number of columns * rows. But that isn't what we want. Instead I did this

# Approach
<!-- Describe your approach to solving the problem. -->
I decided to use the `DataFrame.shape` method which returns the number of rows and columns in a tuple, and to convert it into a list/array I used the `list()` method


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

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