15 Jun 2024PythonUnknown

Drop Missing Data

notes and solution files for drop missing data.

this entry collects the solution files i have for drop missing data. i may expand it with a fuller write-up later, but the implementation files are already here.

available solution files

  • Python drop-missing-data/drop-missing-data.py

Solution files

Pythondrop-missing-data/drop-missing-data.py
import pandas as pd

def dropMissingData(students: pd.DataFrame) -> pd.DataFrame:
    students.dropna(axis = class="syntax-number">0, how = class="syntax-string">"any", subset = class="syntax-string">"name", inplace = True)
    return students