[ Pandas ] ✅✅ Simple Pandas Solution | 3 Approach 🥳✌👍
If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 551 ms, faster than 21.63% of Pandas online submission
# If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 551 ms, faster than 21.63% of Pandas online submissions for Get the Size of a DataFrame.\n# Memory Usage: 60.5 MB, less than 19.56% of Pandas online submissions for Get the Size of a DataFrame.\n\n\timport pandas as pd\n\n\tdef getDataframeSize(players: pd.DataFrame) -> List[int]:\n\t\n\t\treturn [players.shape[0], players.shape[1]]\n\n------------------------------------------------------------------\n\n\timport pandas as pd\n\n\tdef getDataframeSize(players: pd.DataFrame) -> List[int]:\n\n\t\tresult = [len(players) , len(players.columns)]\n\n\t\treturn result\n\t\t\n------------------------------------------------------------------\n\n\timport pandas as pd\n\n\tdef getDataframeSize(players: pd.DataFrame) -> List[int]:\n\t\n\t\tresult = list(players.shape)\n\t\n\t\treturn result\n\n------------------------------------------------------------------\n\n\tTime Complexity : O(1)\n\tSpace Complexity : O(1)\n# Thank You \uD83E\uDD73\u270C\uD83D\uDC4D
['Python', 'Python3']