Practice Drop Missing Data
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Easy#2883
LeetCode ProblemDrop Missing Data
Problem Statement
The students DataFrame has student_id (int), name (object) and age (int) columns. Remove rows with a missing name value and return the remaining DataFrame.
Source: Drop Missing Data on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
+------------+---------+-----+ | student_id | name | age | +------------+---------+-----+ | 32 | Piper | 5 | | 217 | None | 19 | | 779 | Georgia | 20 | | 849 | Willow | 14 | +------------+---------+-----+
Output
+------------+---------+-----+ | student_id | name | age | +------------+---------+-----+ | 32 | Piper | 5 | | 779 | Georgia | 20 | | 849 | Willow | 14 | +------------+---------+-----+
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.