g2801_2900.s2883_drop_missing_data.solution.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leetcode-in-java Show documentation
Show all versions of leetcode-in-java Show documentation
Java-based LeetCode algorithm problem solutions, regularly updated
The newest version!
# #Easy #2023_12_23_Time_429_ms_(94.97%)_Space_61.2_MB_(12.30%)
import pandas as pd
def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
r = pd.DataFrame(students)
r.dropna(subset='name', inplace=True)
return r
© 2015 - 2024 Weber Informatics LLC | Privacy Policy