Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REVIEW] Upgrade arrow to 4.0.1 #7495

Merged
merged 97 commits into from
Jun 29, 2021
Merged
Show file tree
Hide file tree
Changes from 48 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
3952854
update pyarrow to 3.0.0
galipremsagar Mar 2, 2021
76c4bf0
Merge remote-tracking branch 'upstream/branch-0.19' into 7224
galipremsagar Mar 3, 2021
74603fb
move utility code out of tests folder
galipremsagar Mar 3, 2021
b49ed25
add workaround for creating an arrow table from CUDABuffer
galipremsagar Mar 4, 2021
bb7aff4
Merge remote-tracking branch 'upstream/branch-0.19' into 7224
galipremsagar Mar 4, 2021
c917739
revert cat changes, and make testing utils internal
galipremsagar Mar 5, 2021
5ff10d5
Apply suggestions from code review
galipremsagar Mar 5, 2021
890ccbd
Merge remote-tracking branch 'upstream/branch-0.19' into 7224
galipremsagar Mar 11, 2021
04a6de3
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar Mar 11, 2021
5d18fb7
pyarrow 2.0
galipremsagar Mar 11, 2021
2021304
pyarrow 2.0
galipremsagar Mar 11, 2021
544bf68
Merge remote-tracking branch 'upstream/branch-0.19' into 7224
galipremsagar Mar 11, 2021
99ad78e
Merge remote-tracking branch 'upstream/branch-0.19' into 7224
galipremsagar Mar 16, 2021
3ff2c80
sync code-base
galipremsagar Mar 16, 2021
88794fe
fix imports
galipremsagar Mar 17, 2021
6a101da
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar Mar 17, 2021
90a8601
change arrow version
galipremsagar Mar 17, 2021
6e1a1d2
merge
galipremsagar Apr 6, 2021
0545fdd
sync changes
galipremsagar Apr 7, 2021
baeabe9
bump up the arrow version
galipremsagar Apr 7, 2021
9984297
remove xfail
galipremsagar Apr 7, 2021
addf97c
Merge remote-tracking branch 'upstream/branch-0.20' into 7224
galipremsagar Apr 8, 2021
387faa8
resolve conflicts
galipremsagar Apr 29, 2021
707dcc0
update 11.2 yml
galipremsagar Apr 29, 2021
979e529
Merge remote-tracking branch 'upstream/branch-0.20' into 7224
galipremsagar Apr 29, 2021
bef843f
Merge remote-tracking branch 'upstream/branch-0.20' into 7224
galipremsagar Apr 30, 2021
f16a653
Merge remote-tracking branch 'upstream/branch-0.20' into 7224
galipremsagar Apr 30, 2021
5c1acad
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar May 5, 2021
0391d93
Merge remote-tracking branch 'upstream/branch-0.20' into 7224
galipremsagar May 5, 2021
884e8bc
merge
galipremsagar May 10, 2021
97c1ae3
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar May 10, 2021
2f4bd02
merge
galipremsagar May 17, 2021
876007c
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar May 17, 2021
eaf861f
resolve conflicts
galipremsagar Jun 1, 2021
7005ed0
bump arrow patch version
galipremsagar Jun 1, 2021
290bc16
remove stale code
galipremsagar Jun 1, 2021
6cd394d
temporary change
galipremsagar Jun 1, 2021
cab9539
remove to_pandas()
galipremsagar Jun 1, 2021
173d794
imports
galipremsagar Jun 1, 2021
b9a90bf
temp commit
galipremsagar Jun 8, 2021
7b2289f
Merge branch 'rapidsai:branch-21.08' into 7224
galipremsagar Jun 8, 2021
4a0b224
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 9, 2021
bf27b2f
Merge branch 'branch-21.08' into 7224
galipremsagar Jun 14, 2021
5f99ad8
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar Jun 14, 2021
5bbc957
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 14, 2021
0fb2c6d
style
galipremsagar Jun 14, 2021
6046433
style
galipremsagar Jun 14, 2021
cd3e9d3
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 15, 2021
995b4a5
temp commit
galipremsagar Jun 15, 2021
9bd6886
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar Jun 16, 2021
38ecdb5
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 16, 2021
c41dc8d
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 16, 2021
e83b2c8
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 16, 2021
b773f64
Merge branch 'branch-21.08' of github.com:rapidsai/cudf into 7224
trxcllnt Jun 16, 2021
7a199ad
flush after writing second JSON line
trxcllnt Jun 16, 2021
ba74593
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 17, 2021
79a364e
add back xml output
galipremsagar Jun 17, 2021
c9c9a15
temp commit
galipremsagar Jun 17, 2021
c863ab3
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 17, 2021
47e3abf
disable tests
galipremsagar Jun 18, 2021
45880e7
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 18, 2021
4775068
disable arrow test
galipremsagar Jun 18, 2021
71d7ab1
merge
galipremsagar Jun 21, 2021
0b2f127
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 22, 2021
626b915
add arrow 4.0.1 in cpu builds
galipremsagar Jun 22, 2021
a7b631e
conda install
galipremsagar Jun 22, 2021
951df94
gpu packages
galipremsagar Jun 22, 2021
0c3570f
-y
galipremsagar Jun 22, 2021
6eecdc7
use conda
galipremsagar Jun 22, 2021
038349f
fix
galipremsagar Jun 22, 2021
9f06543
fix
galipremsagar Jun 22, 2021
18dac17
Apply suggestions from code review
galipremsagar Jun 22, 2021
2cf75fb
revert disabling of arrow tests
galipremsagar Jun 22, 2021
a7678ec
Merge branch '7224' of https://github.com/galipremsagar/cudf into 7224
galipremsagar Jun 22, 2021
94fd76e
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 23, 2021
d07ccfa
test
galipremsagar Jun 23, 2021
bec13ac
test
galipremsagar Jun 23, 2021
726da20
remove force uninstall of arrow
galipremsagar Jun 23, 2021
944d322
change to conda
galipremsagar Jun 24, 2021
d37af80
version
galipremsagar Jun 24, 2021
0cb9ed4
add build number
galipremsagar Jun 24, 2021
9faa4f4
conda
galipremsagar Jun 24, 2021
51ef74f
test
galipremsagar Jun 24, 2021
39f3f2e
unpin librdkafka
galipremsagar Jun 24, 2021
b3c6007
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 24, 2021
2dac387
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 24, 2021
b8d33c8
bump librdkafka
galipremsagar Jun 24, 2021
2d188ee
refactor
galipremsagar Jun 24, 2021
6405634
pin
galipremsagar Jun 24, 2021
be35c9c
Update python/cudf/cudf/_lib/utils.pyx
galipremsagar Jun 24, 2021
52bf416
Merge branch 'branch-21.08' into 7224
galipremsagar Jun 25, 2021
ff945bb
add confluent-kafka
galipremsagar Jun 25, 2021
db56768
remove pin
galipremsagar Jun 25, 2021
154c132
Merge branch 'branch-21.08' into 7224
galipremsagar Jun 25, 2021
915c5df
fix typo
galipremsagar Jun 25, 2021
68928bc
Merge remote-tracking branch 'upstream/branch-21.08' into 7224
galipremsagar Jun 28, 2021
e9515ba
revert local arrow installs
galipremsagar Jun 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ gpuci_conda_retry install -y \
"ucx-py=0.21.*"

# https://docs.rapids.ai/maintainers/depmgmt/
# gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
gpuci_conda_retry remove --force rapids-build-env rapids-notebook-env
# gpuci_conda_retry install -y "your-pkg=1.0.0"
gpuci_conda_retry install -y "arrow-cpp=4.0.1 pyarrow=4.0.1"
galipremsagar marked this conversation as resolved.
Show resolved Hide resolved


gpuci_logger "Check compiler versions"
Expand Down Expand Up @@ -168,7 +169,7 @@ else
for gt in gtests/* ; do
test_name=$(basename ${gt})
echo "Running GoogleTest $test_name"
${gt} --gtest_output=xml:"$WORKSPACE/test-results/"
${gt}
done

CUDF_CONDA_FILE=`find ${CONDA_ARTIFACT_PATH} -name "libcudf-*.tar.bz2"`
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cudf_dev_cuda11.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- numba>=0.53.1
- numpy
- pandas>=1.0,<1.3.0dev0
- pyarrow=1.0.1
- pyarrow=4.0.1
- fastavro>=0.22.9
- notebook>=0.5.0
- cython>=0.29,<0.30
Expand All @@ -44,8 +44,8 @@ dependencies:
- dask>=2021.6.0
- distributed>=2021.6.0
- streamz
- arrow-cpp=4.0.1
- dlpack>=0.5,<0.6.0a0
- arrow-cpp=1.0.1
- arrow-cpp-proc * cuda
- double-conversion
- rapidjson
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cudf_dev_cuda11.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
- numba>=0.53.1
- numpy
- pandas>=1.0,<1.3.0dev0
- pyarrow=1.0.1
- pyarrow=4.0.1
- fastavro>=0.22.9
- notebook>=0.5.0
- cython>=0.29,<0.30
Expand All @@ -44,8 +44,8 @@ dependencies:
- dask>=2021.6.0
- distributed>=2021.6.0
- streamz
- arrow-cpp=4.0.1
- dlpack>=0.5,<0.6.0a0
- arrow-cpp=1.0.1
- arrow-cpp-proc * cuda
- double-conversion
- rapidjson
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/cudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ requirements:
- setuptools
- numba >=0.53.1
- dlpack>=0.5,<0.6.0a0
- pyarrow 1.0.1
- pyarrow 4.0.1
- libcudf {{ version }}
- rmm {{ minor_version }}
- cudatoolkit {{ cuda_version }}
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/libcudf/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ requirements:
host:
- librmm {{ minor_version }}.*
- cudatoolkit {{ cuda_version }}.*
- arrow-cpp 1.0.1
- arrow-cpp 4.0.1
- arrow-cpp-proc * cuda
- dlpack>=0.5,<0.6.0a0
run:
Expand Down
2 changes: 1 addition & 1 deletion cpp/cmake/thirdparty/CUDF_GetArrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,6 @@ function(find_and_configure_arrow VERSION BUILD_STATIC)

endfunction()

set(CUDF_VERSION_Arrow 1.0.1)
set(CUDF_VERSION_Arrow 4.0.1)

find_and_configure_arrow(${CUDF_VERSION_Arrow} ${CUDF_USE_ARROW_STATIC})
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/avro.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
pandas_to_avro,
pyarrow_to_pandas,
)
from cudf.tests import dataset_generator as dg
from cudf.testing import dataset_generator as dg

logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(message)s",
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
_generate_rand_meta,
pyarrow_to_pandas,
)
from cudf.tests import dataset_generator as dg
from cudf.testing import dataset_generator as dg
from cudf.utils.dtypes import pandas_dtypes_to_cudf_dtypes

logging.basicConfig(
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
_generate_rand_meta,
pyarrow_to_pandas,
)
from cudf.tests import dataset_generator as dg
from cudf.testing import dataset_generator as dg
from cudf.utils.dtypes import pandas_dtypes_to_cudf_dtypes

logging.basicConfig(
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
pandas_to_orc,
pyarrow_to_pandas,
)
from cudf.tests import dataset_generator as dg
from cudf.testing import dataset_generator as dg

logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(message)s",
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
_generate_rand_meta,
pyarrow_to_pandas,
)
from cudf.tests import dataset_generator as dg
from cudf.testing import dataset_generator as dg

logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(message)s",
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/tests/fuzz_test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
compare_content,
run_test,
)
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq


@pythonfuzz(data_handle=CSVReader)
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/tests/fuzz_test_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from cudf._fuzz_testing.json import JSONReader, JSONWriter
from cudf._fuzz_testing.main import pythonfuzz
from cudf._fuzz_testing.utils import ALL_POSSIBLE_VALUES, run_test
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq


@pythonfuzz(data_handle=JSONReader)
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/_fuzz_testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pyorc

import cudf
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq
from cudf.utils.dtypes import (
pandas_dtypes_to_cudf_dtypes,
pyarrow_dtypes_to_pandas_dtypes,
Expand Down
4 changes: 2 additions & 2 deletions python/cudf/cudf/_lib/gpuarrow.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ from pyarrow.includes.libarrow cimport (
CRecordBatchStreamReader
)
from pyarrow.lib cimport (
_CRecordBatchReader,
RecordBatchReader,
Buffer,
Schema,
pyarrow_wrap_schema
)
import pyarrow as pa


cdef class CudaRecordBatchStreamReader(_CRecordBatchReader):
cdef class CudaRecordBatchStreamReader(RecordBatchReader):
cdef:
CIpcReadOptions options

Expand Down
16 changes: 10 additions & 6 deletions python/cudf/cudf/_lib/utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,16 @@ cpdef generate_pandas_metadata(Table table, index):
index_descriptors.append(descr)

metadata = pa.pandas_compat.construct_metadata(
table,
col_names,
index_levels,
index_descriptors,
index,
types,
columns_to_convert=[
col
for col in table._data.columns
rgsl888prabhu marked this conversation as resolved.
Show resolved Hide resolved
],
df=table,
column_names=col_names,
index_levels=index_levels,
index_descriptors=index_descriptors,
preserve_index=index,
types=types,
)

md_dict = json.loads(metadata[b"pandas"])
Expand Down
11 changes: 6 additions & 5 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -5666,11 +5666,12 @@ def to_arrow(self, preserve_index=True):

out = super(DataFrame, data).to_arrow()
metadata = pa.pandas_compat.construct_metadata(
self,
out.schema.names,
[self.index],
index_descr,
preserve_index,
columns_to_convert=[self[col] for col in self._data.names],
df=self,
column_names=out.schema.names,
index_levels=[self.index],
index_descriptors=index_descr,
preserve_index=preserve_index,
types=out.schema.types,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from cudf.core.column.datetime import _numpy_to_pandas_conversion
from cudf.utils import dtypes as dtypeutils

_JOIN_TYPES = ("left", "inner", "outer", "right", "leftanti", "leftsemi")
galipremsagar marked this conversation as resolved.
Show resolved Hide resolved

supported_numpy_dtypes = [
"bool",
"int8",
Expand Down Expand Up @@ -308,5 +310,36 @@ def does_not_raise():
yield


def assert_join_results_equal(expect, got, how, **kwargs):
if how not in _JOIN_TYPES:
raise ValueError(f"Unrecognized join type {how}")
if how == "right":
got = got[expect.columns]

if isinstance(expect, (pd.Series, cudf.Series)):
return assert_eq(
expect.sort_values().reset_index(drop=True),
got.sort_values().reset_index(drop=True),
**kwargs,
)
elif isinstance(expect, (pd.DataFrame, cudf.DataFrame)):
if not len(
expect.columns
): # can't sort_values() on a df without columns
return assert_eq(expect, got, **kwargs)

assert_eq(
expect.sort_values(expect.columns.to_list()).reset_index(
drop=True
),
got.sort_values(got.columns.to_list()).reset_index(drop=True),
**kwargs,
)
elif isinstance(expect, (pd.Index, cudf.Index)):
return assert_eq(expect.sort_values(), got.sort_values(), **kwargs)
else:
raise ValueError(f"Not a join result: {type(expect).__name__}")


def xfail_param(param, **kwargs):
return pytest.param(param, marks=pytest.mark.xfail(**kwargs))
Empty file.
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_apply_rows.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import cudf
from cudf.core.column import column
from cudf.tests.utils import assert_eq, gen_rand_series
from cudf.testing._utils import assert_eq, gen_rand_series


def _kernel_multiply(a, b, out):
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_applymap.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest

from cudf import Series
from cudf.tests import utils
from cudf.testing import _utils as utils


@pytest.mark.parametrize(
Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_array_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest

import cudf
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq
from cudf.utils.utils import IS_NEP18_ACTIVE

missing_arrfunc_cond = not IS_NEP18_ACTIVE
Expand Down
7 changes: 4 additions & 3 deletions python/cudf/cudf/tests/test_array_ufunc.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import cudf
import numpy as np
import cupy as cp
import numpy as np
import pandas as pd
import pytest
from cudf.tests.utils import assert_eq

import cudf
from cudf.testing._utils import assert_eq


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import pytest

import cudf
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq


def cudf_from_avro_util(schema, records):
Expand Down
4 changes: 2 additions & 2 deletions python/cudf/cudf/tests/test_binops.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import cudf
from cudf.core import Series
from cudf.core.index import as_index
from cudf.tests import utils
from cudf.testing import _utils as utils
from cudf.utils.dtypes import (
BOOL_TYPES,
DATETIME_TYPES,
Expand Down Expand Up @@ -2242,7 +2242,7 @@ def test_binops_decimal(args):
),
],
)
@pytest.mark.parametrize("integer_dtype", cudf.tests.utils.INTEGER_TYPES)
@pytest.mark.parametrize("integer_dtype", utils.INTEGER_TYPES)
@pytest.mark.parametrize("reflected", [True, False])
def test_binops_decimal_comp_mixed_integer(args, integer_dtype, reflected):
"""
Expand Down
6 changes: 5 additions & 1 deletion python/cudf/cudf/tests/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

import cudf
from cudf.core._compat import PANDAS_GE_110
from cudf.tests.utils import NUMERIC_TYPES, assert_eq, assert_exceptions_equal
from cudf.testing._utils import (
NUMERIC_TYPES,
assert_eq,
assert_exceptions_equal,
)


@pytest.fixture
Expand Down
8 changes: 4 additions & 4 deletions python/cudf/cudf/tests/test_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import cudf
from cudf._lib.transform import mask_to_bools
from cudf.core.column.column import as_column
from cudf.tests.utils import assert_eq, assert_exceptions_equal
from cudf.testing._utils import assert_eq, assert_exceptions_equal
from cudf.utils import dtypes as dtypeutils

dtypes = sorted(
Expand Down Expand Up @@ -140,8 +140,8 @@ def test_column_series_multi_dim(data):
@pytest.mark.parametrize(
("data", "error"),
[
([1, "1.0", "2", -3], TypeError),
([np.nan, 0, "null", cp.nan], TypeError),
([1, "1.0", "2", -3], pa.lib.ArrowInvalid),
([np.nan, 0, "null", cp.nan], pa.lib.ArrowInvalid),
(
[np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)],
None,
Expand All @@ -152,7 +152,7 @@ def test_column_mixed_dtype(data, error):
if error is None:
cudf.Series(data)
else:
with pytest.raises(TypeError):
with pytest.raises(error):
cudf.Series(data)


Expand Down
2 changes: 1 addition & 1 deletion python/cudf/cudf/tests/test_column_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import cudf
from cudf.core.column_accessor import ColumnAccessor
from cudf.tests.utils import assert_eq
from cudf.testing._utils import assert_eq

simple_test_data = [
{},
Expand Down
6 changes: 3 additions & 3 deletions python/cudf/cudf/tests/test_concat.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# Copyright (c) 2018-2021, NVIDIA CORPORATION.

import re
from decimal import Decimal

import numpy as np
import pandas as pd
import pytest
from decimal import Decimal

import cudf as gd
from cudf.tests.utils import assert_eq, assert_exceptions_equal
from cudf.utils.dtypes import is_categorical_dtype
from cudf.core.dtypes import Decimal64Dtype
from cudf.testing._utils import assert_eq, assert_exceptions_equal
from cudf.utils.dtypes import is_categorical_dtype


def make_frames(index=None, nulls="none"):
Expand Down
Loading