repo_id
stringlengths
21
96
file_path
stringlengths
31
155
content
stringlengths
1
92.9M
__index_level_0__
int64
0
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/dataframe/test_combining.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/strings/test_string_methods.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/general_functions/test_conversion.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/general_functions/test_data_manipulation.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/general_functions/test_datetimelike.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/window/test_rolling.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/lists/test_list_methods.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_sorting.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_constructing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_conversion.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_interval.py
# Copyright (c) 2023, NVIDIA CORPORATION. import numpy as np import pandas as pd import pyarrow as pa import pytest import cudf from cudf.core._compat import PANDAS_GE_210 from cudf.core.index import IntervalIndex, interval_range from cudf.testing._utils import assert_eq def test_interval_constructor_default_closed(...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_properties.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_modifying.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_computation.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_missing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_numeric.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_selecting.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_memory_usage.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_categorical.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_time_specific.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_multiindex_compat.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/test_combining.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/timedelta/test_constructing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/timedelta/test_conversion.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/timedelta/test_components.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/multiindex/test_constructing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/multiindex/test_properties.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/multiindex/test_selecting.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/datetime/test_constructing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/datetime/test_conversion.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/datetime/test_indexing.py
# Copyright (c) 2023, NVIDIA CORPORATION. import pandas as pd import cudf from cudf.testing._utils import assert_eq def test_slice_datetimetz_index(): data = ["2001-01-01", "2001-01-02", None, None, "2001-01-03"] pidx = pd.DatetimeIndex(data, dtype="datetime64[ns]").tz_localize( "US/Eastern" ) ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/datetime/test_components.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes
rapidsai_public_repos/cudf/python/cudf/cudf/tests/indexes/datetime/test_time_specific.py
# Copyright (c) 2022-2023, NVIDIA CORPORATION. import pandas as pd import cudf from cudf.testing._utils import assert_eq def test_tz_localize(): pidx = pd.date_range("2001-01-01", "2001-01-02", freq="1s") pidx = pidx.astype("<M8[ns]") idx = cudf.from_pandas(pidx) assert pidx.dtype == idx.dtype as...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/groupby/test_agg.py
# Copyright (c) 2023, NVIDIA CORPORATION. import numpy as np import pytest import cudf @pytest.mark.parametrize( "empty", [True, False], ids=["empty", "nonempty"], ) def test_agg_count_dtype(empty): df = cudf.DataFrame({"a": [1, 2, 1], "c": ["a", "b", "c"]}) if empty: df = df.iloc[:0] ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/groupby/test_computation.py
# Copyright (c) 2023, NVIDIA CORPORATION. import pandas as pd import pytest import cudf from cudf.testing._utils import assert_eq @pytest.mark.parametrize("method", ["average", "min", "max", "first", "dense"]) def test_rank_return_type_compatible_mode(method): # in compatible mode, rank() always returns floats ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/groupby/test_stats.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/groupby/test_indexing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/groupby/test_function_application.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/general_utilities/test_testing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_sorting.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_constructing.py
# Copyright (c) 2023, NVIDIA CORPORATION. import numpy as np import cudf def test_construct_int_series_with_nulls_compat_mode(): # in compatibility mode, constructing a Series # with nulls should result in a floating Series: with cudf.option_context("mode.pandas_compatible", True): s = cudf.Serie...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_conversion.py
# Copyright (c) 2023, NVIDIA CORPORATION. import pandas as pd import pytest import cudf from cudf.testing._utils import assert_eq @pytest.mark.parametrize( "data, dtype", [ ([1, 2, 3], "int8"), ([1, 2, 3], "int64"), ([1.1, 2.2, 3.3], "float32"), ([1.0, 2.0, 3.0], "float32"), ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_accessors.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_datetimelike.py
# Copyright (c) 2023, NVIDIA CORPORATION. import os import pandas as pd import pytest import cudf from cudf import date_range from cudf.testing._utils import assert_eq def _get_all_zones(): zones = [] for root, dirs, files in os.walk("/usr/share/zoneinfo"): for f in files: zone_name = (...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_timeseries.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_computation.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_io_serialization.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_missing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_indexing.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_attributes.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_function_application.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_binary_operations.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_selecting.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_reshaping.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_categorial.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/series/test_combining.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/subword_tokenizer_data/test_sentences.txt
This text is included to make sure Unicode is handled properly: 力加勝北区ᴵᴺᵀᵃছজটডণত This sample text is public domain and was randomly selected from Project Guttenberg. The rain had only ceased with the gray streaks of morning at Blazing Star, and the settlement awoke to a moral sense of cleanliness, and the finding of for...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/subword_tokenizer_data
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/subword_tokenizer_data/bert_base_cased_sampled/vocab.txt
[PAD] [unused1] [unused2] [unused3] [unused4] [unused5] [unused6] [unused7] [unused8] [unused9] [unused10] [unused11] [unused12] [unused13] [unused14] [unused15] [unused16] [unused17] [unused18] [unused19] [unused20] [unused21] [unused22] [unused23] [unused24] [unused25] [unused26] [unused27] [unused28] [unused29] [unu...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/subword_tokenizer_data
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/subword_tokenizer_data/bert_base_cased_sampled/vocab-hash.txt
26899 27424 875 7428432802425011718 0 5054974408289448963 6 18358444369622338053 9 5716902217424485892 14 8236612966193239043 18 15282833726017872390 21 15533348956988973570 27 9001315167781089284 29 7621090240282984451 33 15337888141402371590 36 16169070283077377537 42 15615300272936709634 43 12338784885023498756 45 3...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data
rapidsai_public_repos/cudf/python/cudf/cudf/tests/data/text/chess.pgn
[Event "F/S Return Match"] [Site "Belgrade, Serbia JUG"] [Date "1992.11.04"] [Round "29"] [White "Fischer, Robert J."] [Black "Spassky, Boris V."] [Result "1/2-1/2"] 1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 {This opening is called the Ruy Lopez.} 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3 O-O 9. h3 Nb8 10. d4 Nbd7 11. c4 c6...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/structs/test_struct_methods.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/options/test_options.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/text/test_text_methods.py
# Copyright (c) 2019-2023, NVIDIA CORPORATION. import random import string import numpy as np import pytest import cudf from cudf.core.byte_pair_encoding import BytePairEncoder from cudf.core.tokenize_vocabulary import TokenizeVocabulary from cudf.testing._utils import assert_eq def test_tokenize(): strings = ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/text/test_subword_tokenizer.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. import os import cupy import numpy as np import pytest import cudf from cudf.core.subword_tokenizer import SubwordTokenizer from cudf.testing._utils import assert_eq @pytest.fixture(scope="module") def datadir(datadir): return os.path.join(datadir, "subword_tokeniz...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_parquet.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_avro.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_hdf5.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_csv.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_orc.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_text.py
# Copyright (c) 2019-2023, NVIDIA CORPORATION. from io import StringIO import pytest import cudf from cudf.testing._utils import assert_eq @pytest.fixture(scope="module") def datadir(datadir): return datadir / "text" def test_read_text(datadir): chess_file = str(datadir) + "/chess.pgn" delimiter = "1...
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_feather.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf/tests
rapidsai_public_repos/cudf/python/cudf/cudf/tests/input_output/test_json.py
# Copyright (c) 2023, NVIDIA CORPORATION.
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/profiler.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 import inspect import operator import pickle import sys import time from collections import defaultdict from typing import Union from rich.console import Console from rich.syntax ...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/magics.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 try: from IPython.core.magic import Magics, cell_magic, magics_class from .profiler import Profiler, lines_with_profiling @magics_class class CudfPandasMagics(Ma...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/annotation.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations try: import nvtx except ImportError: class nvtx: # type: ignore """Noop-stub with the same API as nvtx.""" push_range...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/module_accelerator.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import contextlib import functools import importlib import importlib.abc import importlib.machinery import os import pathlib import sys import t...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/fast_slow_proxy.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import functools import inspect import operator import pickle import types from collections.abc import Iterator from enum import IntEnum from ty...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/__init__.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from .magics import load_ipython_extension from .profiler import Profiler __all__ = ["Profiler", "load_ipython_extension", "install"] LOADED = False def install(): """Enab...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/__main__.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ Usage: python -m cudf.pandas <script.py> <args> python -m cudf.pandas -m module <args> """ import argparse import runpy import sys import tempfile from contextlib import cont...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/_wrappers/common.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 # Utility custom overrides for special methods/properties from ..fast_slow_proxy import ( _FastSlowAttribute, _FastSlowProxy, _maybe_wrap_result, _slow_arg, ) def...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/_wrappers/numpy.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from __future__ import annotations import cupy import cupy._core.flags import numpy import numpy.core.multiarray from ..fast_slow_proxy import ( make_final_proxy_type, ma...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/_wrappers/__init__.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 from . import numpy, pandas
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/_wrappers/pandas.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 import sys import pandas as pd import cudf from ..annotation import nvtx from ..fast_slow_proxy import ( _CUDF_PANDAS_NVTX_COLORS, _DELETE, _fast_slow_function_call,...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/scripts/run-pandas-tests.sh
#!/usr/bin/env bash # SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 # Run Pandas unit tests with cudf.pandas. # # Usage: # run-pandas-tests.sh <pytest args> <path to pandas tests (optional)> # # Examples # Run a single test # ...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/scripts/conftest-patch.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 import contextlib import os import sys from functools import wraps import pytest def replace_kwargs(new_kwargs): def wrapper(func): @wraps(func) def wrapped(...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/scripts/summarize-test-results.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ Summarizes the test results per module. Examples: python summarize-test-results.py log.json python summarize-test-results.py log.json --output json python summariz...
0
rapidsai_public_repos/cudf/python/cudf/cudf/pandas
rapidsai_public_repos/cudf/python/cudf/cudf/pandas/scripts/analyze-test-failures.py
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES. # All rights reserved. # SPDX-License-Identifier: Apache-2.0 """ Prints the most common test failures for the given tests. Usage: python analyze-test-failures.py <path-to-test-log> <file-or-pattern> Example: python analyze-test-fai...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/testing/_utils.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. import itertools import string import warnings from collections import abc from contextlib import contextmanager from decimal import Decimal import cupy import numpy as np import pandas as pd import pytest from numba.core.typing import signature as nb_signature from numb...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/testing/testing.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. from __future__ import annotations from typing import Union import cupy as cp import numpy as np import pandas as pd import cudf from cudf._lib.unary import is_nan from cudf.api.types import ( is_categorical_dtype, is_decimal_dtype, is_interval_dtype, i...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/testing/__init__.py
# Copyright (c) 2020, NVIDIA CORPORATION. from cudf.testing.testing import ( assert_frame_equal, assert_index_equal, assert_series_equal, )
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/testing/dataset_generator.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. # This module is for generating "synthetic" datasets. It was originally # designed for testing filtered reading. Generally, it should be useful # if you want to generate data where certain phenomena (e.g., cardinality) # are exaggerated. import copy import random import ...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/indexing_utils.py
# Copyright (c) 2023, NVIDIA CORPORATION. from __future__ import annotations from dataclasses import dataclass from typing import Any, List, Tuple, Union from typing_extensions import TypeAlias import cudf from cudf.api.types import ( _is_scalar_or_zero_d_array, is_bool_dtype, is_integer, is_integer...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/subword_tokenizer.py
# Copyright (c) 2021-2023, NVIDIA CORPORATION. from __future__ import annotations import warnings from typing import Union import cupy as cp from cudf._lib.nvtext.subword_tokenize import ( Hashed_Vocabulary as cpp_hashed_vocabulary, subword_tokenize_inmem_hash as cpp_subword_tokenize, ) def _cast_to_appro...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/frame.py
# Copyright (c) 2020-2023, NVIDIA CORPORATION. from __future__ import annotations import copy import itertools import operator import pickle import warnings from collections import abc from typing import ( Any, Callable, Dict, List, MutableMapping, Optional, Tuple, Union, ) # TODO: Th...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/common.py
# Copyright (c) 2020, NVIDIA CORPORATION. def pipe(obj, func, *args, **kwargs): """ Apply a function ``func`` to object ``obj`` either by passing obj as the first argument to the function or, in the case that the func is a tuple, interpret the first element of the tuple as a function and pass the obj ...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/byte_pair_encoding.py
# Copyright (c) 2023, NVIDIA CORPORATION. from __future__ import annotations import cudf from cudf._lib.nvtext.byte_pair_encode import ( BPEMergePairs as cpp_merge_pairs, byte_pair_encoding as cpp_byte_pair_encoding, ) class BytePairEncoder: """ Given a merge pairs strings series, performs byte pair...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/missing.py
# Copyright (c) 2018-2023, NVIDIA CORPORATION. # Pandas NAType enforces a single instance exists at a time # instantiating this class will yield the existing instance # of pandas._libs.missing.NAType, id(cudf.NA) == id(pd.NA). from pandas import NA, NaT __all__ = ["NA", "NaT"]
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/series.py
# Copyright (c) 2018-2023, NVIDIA CORPORATION. from __future__ import annotations import functools import inspect import pickle import textwrap import warnings from collections import abc from shutil import get_terminal_size from typing import ( Any, Dict, MutableMapping, Optional, Sequence, S...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/df_protocol.py
# Copyright (c) 2021-2023, NVIDIA CORPORATION. import enum from collections import abc from typing import ( Any, Dict, Iterable, Mapping, Optional, Sequence, Tuple, cast, ) import cupy as cp import numpy as np from numba.cuda import as_cuda_array import rmm import cudf from cudf.core...
0
rapidsai_public_repos/cudf/python/cudf/cudf
rapidsai_public_repos/cudf/python/cudf/cudf/core/dataframe.py
# Copyright (c) 2018-2023, NVIDIA CORPORATION. from __future__ import annotations import functools import inspect import itertools import numbers import os import pickle import re import sys import textwrap import warnings from collections import abc, defaultdict from collections.abc import Iterator from typing impor...
0