Skip to content

Commit

Permalink
Add test of #15372
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Mar 22, 2024
1 parent 3cc608b commit bb3f865
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion python/cudf/cudf/tests/dataframe/test_constructing.py
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# Copyright (c) 2023, NVIDIA CORPORATION.
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
import pandas as pd
import pytest

import cudf
from cudf.testing._utils import assert_eq


@pytest.mark.parametrize("data", [[], {}, None])
@pytest.mark.parametrize("columns", [["a", "b"], None])
def test_empty_dataframe(data, columns):
got = cudf.DataFrame(data=data, columns=columns)
expect = pd.DataFrame(data=data, columns=columns)
check_dtypes = columns is None
assert_eq(got, expect, check_dtype=check_dtypes)

0 comments on commit bb3f865

Please sign in to comment.