LeetCode solutions

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

Read the problem on LeetCode View on GitHub

Python

Accepted on LeetCode — runtime 263ms, memory 67.3MB, accepted 2026-01-02.

python
import pandas as pd

def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
    return students.dropna(subset='name')

Source