Easy Solution Beginner Friendly || Pandas || Beats 90%
Intuition\nThe problem asks us to find the size (number of rows and columns) of a given DataFrame.\n\n# Approach\nTo solve this problem, we can use the Pandas l
# Intuition\nThe problem asks us to find the size (number of rows and columns) of a given DataFrame.\n\n# Approach\nTo solve this problem, we can use the Pandas library in Python. We can directly use the `.shape` attribute of the DataFrame to get the number of rows and columns. We return the result as an array containing the number of rows and columns.\n\n# Complexity\n- Time complexity: The time complexity is O(1) because accessing the `.shape` attribute of a DataFrame is a constant-time operation.\n- Space complexity: The space complexity is O(1) as we only return a small array containing two integers.\n\n# Code\n```python\nimport pandas as pd\n\ndef getDataframeSize(players: pd.DataFrame) -> List[int]:\n    return [players.shape[0], players.shape[1]]\n    # OR\n    return list(players.shape)\n
['Pandas']