Skip to content

Commit

Permalink
Merge branch 'branch-25.02' into perf/mi/lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored Jan 14, 2025
2 parents b82c371 + fe75cb8 commit 4522f4a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
5 changes: 2 additions & 3 deletions cpp/src/io/utilities/config_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2024, NVIDIA CORPORATION.
* Copyright (c) 2021-2025, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,8 +56,7 @@ void set_up_kvikio()
{
static std::once_flag flag{};
std::call_once(flag, [] {
auto const compat_mode =
kvikio::detail::getenv_or("KVIKIO_COMPAT_MODE", kvikio::CompatMode::ON);
auto const compat_mode = kvikio::getenv_or("KVIKIO_COMPAT_MODE", kvikio::CompatMode::ON);
kvikio::defaults::compat_mode_reset(compat_mode);

auto const nthreads = getenv_or<unsigned int>("KVIKIO_NTHREADS", 4u);
Expand Down
4 changes: 4 additions & 0 deletions python/cudf/cudf/core/column/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -2413,7 +2413,11 @@ def as_column(
and pa.types.is_integer(arbitrary.type)
and arbitrary.null_count > 0
):
# TODO: Need to re-visit this cast and fill_null
# calls while addressing the following issue:
# https://github.com/rapidsai/cudf/issues/14149
arbitrary = arbitrary.cast(pa.float64())
arbitrary = pc.fill_null(arbitrary, np.nan)
if (
cudf.get_option("default_integer_bitwidth")
and pa.types.is_integer(arbitrary.type)
Expand Down
11 changes: 10 additions & 1 deletion python/cudf/cudf/tests/test_series.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2020-2024, NVIDIA CORPORATION.
# Copyright (c) 2020-2025, NVIDIA CORPORATION.
import datetime
import decimal
import hashlib
Expand Down Expand Up @@ -3003,3 +3003,12 @@ def test_dtype_dtypes_equal():
ser = cudf.Series([0])
assert ser.dtype is ser.dtypes
assert ser.dtypes is ser.to_pandas().dtypes


def test_null_like_to_nan_pandas_compat():
with cudf.option_context("mode.pandas_compatible", True):
ser = cudf.Series([1, 2, np.nan, 10, None])
pser = pd.Series([1, 2, np.nan, 10, None])

assert pser.dtype == ser.dtype
assert_eq(ser, pser)

0 comments on commit 4522f4a

Please sign in to comment.