def METHOD_NAME():
    pd = pytest.importorskip("pandas")
    types = (np.float64, np.float32)
    x_train, y_train = make_dataset(100, 20, list, types=types)
    x_test, _ = make_dataset(100, 20, list, random_state=1, types=types)
    df_x_train, df_y_train = make_dataset(100, 20, pd.DataFrame, types=types)
    df_x_test, _ = make_dataset(100, 20, pd.DataFrame, random_state=1, types=types)
    array_reg = LinearRegression()
    array_reg.fit(x_train, y_train)
    df_reg = LinearRegression()
    df_reg.fit(df_x_train, df_y_train)
    assert_array_almost_equal(
        array_reg.coef_.reshape((-1, 1)), df_reg.coef_.reshape((-1, 1))
    )
    assert_array_almost_equal(array_reg.intercept_, df_reg.intercept_)
    assert_array_almost_equal(
        array_reg.predict(x_test).reshape((-1, 1)),
        df_reg.predict(df_x_test).reshape((-1, 1)),
    )