[LeetCode] Pandas / 2883. Drop missing data

2024. 7. 8. 14:47Coding/LeetCode-Pandas

문제 링크

https://leetcode.com/problems/drop-missing-data/description/

 

문제 

 

코드

import pandas as pd

def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
    return students[students['name'].notnull()]