import pandas as pd
import numpy as np


# Create a simple dataset
data = {'Name': ['John', 'Mike', 'Emily', 'Harvey'],
        'Age': [25, np.nan,np.nan,35],
        'Gender': ['M', 'M', np.nan, 'M']}
df = pd.DataFrame(data)

# remove rows with more than 1 missing value
df = df.dropna(thresh=2)
print(df)