3075. Drop Missing Data
My accepted Python solution to LeetCode problem 3075, Drop Missing Data, running in 263ms.
- Difficulty: Easy
- Python
- Runtime 263ms
- Memory 67.3MB
- Updated
Read the problem on LeetCode View on GitHub
The problem statement is LeetCode’s and stays on their site. What follows is my accepted solution.
Python
Accepted on LeetCode — runtime 263ms, memory 67.3MB, accepted 2026-01-02.
import pandas as pd
def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
return students.dropna(subset='name')