Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Jan 11, 2023
1 parent 678e33e commit 5eff37b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions python/cudf/cudf/tests/test_dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -10013,3 +10013,17 @@ def test_dataframe_transpose_complex_types(data):
actual = gdf.T

assert_eq(expected, actual)


@pytest.mark.parametrize(
"data",
[
{"col": [{"a": 1.1}, {"a": 2.1}, {"a": 10.0}, {"a": 11.2323}, None]},
{"a": [[{"b": 567}], None] * 10},
{"a": [decimal.Decimal(10), decimal.Decimal(20), None]},
],
)
def test_dataframe_values_complex_types(data):
gdf = cudf.DataFrame(data)
with pytest.raises(NotImplementedError):
gdf.values

0 comments on commit 5eff37b

Please sign in to comment.