Add self. (#4794)
This commit is contained in:
parent
9700776597
commit
3fa2ceb193
@ -5,15 +5,13 @@ import pytest
|
|||||||
sys.path.append("tests/python")
|
sys.path.append("tests/python")
|
||||||
import testing as tm
|
import testing as tm
|
||||||
|
|
||||||
pytestmark = pytest.mark.skipif(**tm.no_cudf())
|
|
||||||
|
|
||||||
|
|
||||||
class TestFromColumnar:
|
class TestFromColumnar:
|
||||||
'''Tests for constructing DMatrix from data structure conforming Apache
|
'''Tests for constructing DMatrix from data structure conforming Apache
|
||||||
Arrow specification.'''
|
Arrow specification.'''
|
||||||
|
|
||||||
@pytest.mark.skipif(**tm.no_cudf())
|
@pytest.mark.skipif(**tm.no_cudf())
|
||||||
def test_from_cudf():
|
def test_from_cudf(self):
|
||||||
'''Test constructing DMatrix from cudf'''
|
'''Test constructing DMatrix from cudf'''
|
||||||
import cudf
|
import cudf
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user