def test_autoclean_with_nans_all_numerical():
    data = pd.DataFrame({'A': np.random.rand(1000),
                         'B': np.random.rand(1000),
                         'C': np.random.randint(0, 3, 1000)})

    data.loc[10:20, 'A'] = np.nan
    data.loc[50:70, 'C'] = np.nan

    hand_cleaned_data = data.copy()
    hand_cleaned_data['A'].fillna(hand_cleaned_data['A'].median(), inplace=True)
    hand_cleaned_data['C'].fillna(hand_cleaned_data['C'].median(), inplace=True)

    cleaned_data = autoclean(data)

    assert cleaned_data.equals(hand_cleaned_data)
Get data.
dataset/ETHPy150Open rhiever/datacleaner/tests.py/test_autoclean_with_nans_all_numerical--crossover with--dataset/ETHPy150Open LabPy/lantz/lantz/drivers/legacy/tektronix/tds2024b.py/TDS2024.curv