[ Pandas ] ✅✅ Simple Pandas Solution | 2 Approach 🥳✌👍
If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 630 ms, faster than 6.76% of Pandas online submissions
# If You like the Solution, Don\'t Forget To UpVote Me, Please UpVote! \uD83D\uDD3C\uD83D\uDE4F\n# Runtime: 630 ms, faster than 6.76% of Pandas online submissions for Drop Missing Data.\n# Memory Usage: 60.5 MB, less than 69.35% of Pandas online submissions for Drop Missing Data.\n\n\timport pandas as pd\n\n\tdef dropMissingData(students: pd.DataFrame) -> pd.DataFrame:\n\n\t\tall_students = []\n\n\t\tfor index in students.index:\n\n\t\t\tstudent = students.iloc[index]\n\n\t\t\tif student[\'name\'] != None:\n\n\t\t\t\tall_students.append([student[\'student_id\'] , student[\'name\'] , student[\'age\']])\n\n\t\tresult = pd.DataFrame(all_students , columns = [\'student_id\' , \'name\' , \'age\'])\n\n\t\treturn result\n\t\t\n----------------------------------------------------------------------------------------------------\n# Runtime: 620 ms, faster than 8.85% of Pandas online submissions for Drop Missing Data.\n# Memory Usage: 60.4 MB, less than 73.53% of Pandas online submissions for Drop Missing Data.\n\n\timport pandas as pd\n\n\tdef dropMissingData(students: pd.DataFrame) -> pd.DataFrame:\n\n\t\tstudents.dropna(subset = [\'name\'], inplace=True)\n\n\t\treturn students\n# Thank You \uD83E\uDD73\u270C\uD83D\uDC4D
['Python', 'Python3']