repo_id stringlengths 21 96 | file_path stringlengths 31 155 | content stringlengths 1 92.9M | __index_level_0__ int64 0 0 |
|---|---|---|---|
rapidsai_public_repos | rapidsai_public_repos/cudf/README.md | # <div align="left"><img src="img/rapids_logo.png" width="90px"/> cuDF - GPU DataFrames</div>
## π’ cuDF can now be used as a no-code-change accelerator for pandas! To learn more, see [here](https://rapids.ai/cudf-pandas/)!
cuDF is a GPU DataFrame library for loading joining, aggregating,
filtering, and otherwis... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/CHANGELOG.md | # cuDF 23.10.00 (11 Oct 2023)
## π¨ Breaking Changes
- Expose stream parameter in public nvtext ngram APIs ([#14061](https://github.com/rapidsai/cudf/pull/14061)) [@davidwendt](https://github.com/davidwendt)
- Raise `MixedTypeError` when a column of mixed-dtype is being constructed ([#14050](https://github.com/rapids... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/build.sh | #!/bin/bash
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
# cuDF build script
# This script is used to build the component(s) in this repo from
# source, and can be called with various options to customize the
# build as needed (see the help output for details)
# Abort script on first error
set -e
NUMARGS=$#
ARGS=... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/codecov.yml | #Configuration File for CodeCov
coverage:
status:
project: off
patch:
default:
target: auto
threshold: 5%
github_checks:
annotations: true
| 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/dependencies.yaml | # Dependency list for https://github.com/rapidsai/dependency-file-generator
files:
all:
output: conda
matrix:
cuda: ["11.8", "12.0"]
arch: [x86_64]
includes:
- build_all
- build_cpp
- build_wheels
- build_python_common
- build_python_cudf
- cudatoolkit
... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/CONTRIBUTING.md | # Contributing to cuDF
Contributions to cuDF fall into the following categories:
1. To report a bug, request a new feature, or report a problem with documentation, please file an
[issue](https://github.com/rapidsai/cudf/issues/new/choose) describing the problem or new feature
in detail. The RAPIDS team evaluate... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/VERSION | 24.02.00
| 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/.clang-format | ---
# Refer to the following link for the explanation of each params:
# http://releases.llvm.org/8.0.0/tools/clang/docs/ClangFormatStyleOptions.html
Language: Cpp
# BasedOnStyle: Google
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecu... | 0 |
rapidsai_public_repos | rapidsai_public_repos/cudf/print_env.sh | #!/usr/bin/env bash
# Copyright (c) 2022, NVIDIA CORPORATION.
# Reports relevant environment information useful for diagnosing and
# debugging cuDF issues.
# Usage:
# "./print_env.sh" - prints to stdout
# "./print_env.sh > env.txt" - prints to file "env.txt"
print_env() {
echo "**git***"
if [ "$(git rev-parse --is-ins... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/dask_cudf/pyproject.toml | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
"wheel",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.
[project]
name ... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/dask_cudf/README.md | # <div align="left"><img src="img/rapids_logo.png" width="90px"/> cuDF - GPU DataFrames</div>
## π’ cuDF can now be used as a no-code-change accelerator for pandas! To learn more, see [here](https://rapids.ai/cudf-pandas/)!
cuDF is a GPU DataFrame library for loading joining, aggregating,
filtering, and otherwis... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/dask_cudf/setup.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
from setuptools import find_packages, setup
packages = find_packages(exclude=["tests", "tests.*"])
setup(
include_package_data=True,
packages=packages,
package_data={key: ["VERSION"] for key in packages},
entry_points={
"dask.dataframe.backends":... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/dask_cudf/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/dask_cudf/.coveragerc | # Configuration file for Python coverage tests
[run]
source = dask_cudf
| 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/accessors.py | # Copyright (c) 2021, NVIDIA CORPORATION.
class StructMethods:
def __init__(self, d_series):
self.d_series = d_series
def field(self, key):
"""
Extract children of the specified struct column
in the Series
Parameters
----------
key: int or str
... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/groupby.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from functools import wraps
from typing import Set
import numpy as np
import pandas as pd
from dask.dataframe.core import (
DataFrame as DaskDataFrame,
aca,
split_out_on_cols,
)
from dask.dataframe.groupby import DataFrameGroupBy, SeriesGroupBy
from dask.uti... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/backends.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import warnings
from collections.abc import Iterator
import cupy as cp
import numpy as np
import pandas as pd
import pyarrow as pa
from pandas.api.types import is_scalar
from pandas.core.tools.datetimes import is_datetime64tz_dtype
import dask.dataframe as dd
from dask ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/core.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
import math
import textwrap
import warnings
import numpy as np
import pandas as pd
from tlz import partition_all
from dask import dataframe as dd
from dask.base import normalize_token, tokenize
from dask.dataframe.core import (
Scalar,
handle_out,
make_meta ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/_version.py | # Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/__init__.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
from dask.dataframe import from_delayed
import cudf
from . import backends
from ._version import __git_commit__, __version__
from .core import DataFrame, Series, concat, from_cudf, from_dask_dataframe
from .groupby import groupby_agg
from .io import read_csv, read_json,... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/sorting.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from collections.abc import Iterator
import cupy
import numpy as np
import tlz as toolz
from dask import config
from dask.base import tokenize
from dask.dataframe import methods
from dask.dataframe.core import DataFrame, Index, Series
from dask.dataframe.shuffle import ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/VERSION | 24.02.00
| 0 |
rapidsai_public_repos/cudf/python/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/DASK_LICENSE.txt | ο»ΏThis library contains modified code from the Dask library
(https://github.com/dask/dask). The original Dask license is below.
Copyright (c) 2014-2017, Continuum Analytics, Inc. and contributors
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provide... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_accessor.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
from pandas.testing import assert_series_equal
from dask import dataframe as dd
from cudf import DataFrame, Series, date_range
from cudf.testing._utils import assert_eq, does_not_raise
import dask_cudf as dgd
######... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_distributed.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import numba.cuda
import pytest
import dask
from dask import dataframe as dd
from dask.distributed import Client
from distributed.utils_test import cleanup, loop, loop_in_thread # noqa: F401
import cudf
from cudf.testing._utils import assert_eq
import dask_cudf
dask_... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_struct.py | # Copyright (c) 2021-2022, NVIDIA CORPORATION.
import pytest
import cudf
import dask_cudf
@pytest.mark.parametrize(
"data, column",
[
(
{
"a": [{"a": [1, 2, 3, 4], "b": "Hello world"}, {}, {"a": []}],
"b": [1, 2, 3],
"c": ["rapids", "cudf"... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_binops.py | # Copyright (c) 2022, NVIDIA CORPORATION.
import operator
import numpy as np
import pandas as pd
import pytest
from dask import dataframe as dd
import cudf
from dask_cudf.tests.utils import _make_random_frame
def _make_empty_frame(npartitions=2):
df = pd.DataFrame({"x": [], "y": []})
gdf = cudf.DataFrame... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_reductions.py | # Copyright (c) 2021, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
from dask import dataframe as dd
import cudf
import dask_cudf as dgd
def _make_random_frame(nelem, npartitions=2):
df = pd.DataFrame(
{
"x": np.random.randint(0, 5, size=nelem),
"y": ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_delayed_io.py | # Copyright (c) 2019-2022, NVIDIA CORPORATION.
"""
Test IO with dask.delayed API
"""
import numpy as np
import pytest
from pandas.testing import assert_frame_equal
from dask.delayed import delayed
import cudf as gd
import dask_cudf as dgd
@delayed
def load_data(nelem, ident):
df = gd.DataFrame()
df["x"] ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_core.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
import random
import cupy as cp
import numpy as np
import pandas as pd
import pytest
from packaging import version
import dask
from dask import dataframe as dd
from dask.dataframe.core import make_meta as dask_make_meta, meta_nonempty
from dask.utils import M
import cu... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_sort.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import cupy as cp
import numpy as np
import pytest
import dask
from dask import dataframe as dd
import cudf
import dask_cudf
@pytest.mark.parametrize("ascending", [True, False])
@pytest.mark.parametrize("by", ["a", "b", "c", "d", ["a", "b"], ["c", "d"]])
@pytest.mark... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_onehot.py | # Copyright (c) 2019-2022, NVIDIA CORPORATION.
import pandas as pd
import pytest
from dask import dataframe as dd
import cudf
import dask_cudf
def test_get_dummies_cat():
df = pd.DataFrame({"C": [], "A": []})
ddf = dd.from_pandas(df, npartitions=10)
dd.assert_eq(dd.get_dummies(ddf).compute(), pd.get_d... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_dispatch.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
from dask.base import tokenize
from dask.dataframe import assert_eq
from dask.dataframe.methods import is_categorical_dtype
import cudf
def test_is_categorical_dispatch():
assert is_categorical_dtype(pd.Categori... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_groupby.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
import dask
from dask import dataframe as dd
from dask.utils_test import hlg_layer
import cudf
import dask_cudf
from dask_cudf.groupby import OPTIMIZED_AGGS, _aggs_optimized
def assert_cudf_groupby_layers(ddf):
... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_applymap.py | # Copyright (c) 2022, NVIDIA CORPORATION.
import pytest
from pandas import NA
from dask import dataframe as dd
from dask_cudf.tests.utils import _make_random_frame
@pytest.mark.parametrize(
"func",
[
lambda x: x + 1,
lambda x: x - 0.5,
lambda x: 2 if x is NA else 2 + (x + 1) / 4.1,
... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/test_join.py | # Copyright (c) 2019-2022, NVIDIA CORPORATION.
from functools import partial
import numpy as np
import pandas as pd
import pytest
from dask import dataframe as dd
import cudf
import dask_cudf as dgd
param_nrows = [5, 10, 50, 100]
@pytest.mark.parametrize("left_nrows", param_nrows)
@pytest.mark.parametrize("righ... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/tests/utils.py | # Copyright (c) 2022, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import dask.dataframe as dd
import cudf
def _make_random_frame(nelem, npartitions=2, include_na=False):
df = pd.DataFrame(
{"x": np.random.random(size=nelem), "y": np.random.random(size=nelem)}
)
if include_na:
... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/orc.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from io import BufferedWriter, IOBase
from fsspec.core import get_fs_token_paths
from fsspec.utils import stringify_path
from pyarrow import orc as orc
from dask import dataframe as dd
from dask.base import tokenize
from dask.dataframe.io.utils import _get_pyarrow_dtype... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/csv.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import os
from glob import glob
from warnings import warn
from fsspec.utils import infer_compression
from dask import dataframe as dd
from dask.base import tokenize
from dask.dataframe.io.csv import make_reader
from dask.utils import apply, parse_bytes
import cudf
de... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/parquet.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import itertools
import warnings
from contextlib import ExitStack
from functools import partial
from io import BufferedWriter, BytesIO, IOBase
import numpy as np
from pyarrow import dataset as pa_ds, parquet as pq
from dask import dataframe as dd
from dask.dataframe.io.p... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/json.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
from functools import partial
import dask
import cudf
from dask_cudf.backends import _default_backend
def read_json(url_path, engine="auto", **kwargs):
"""Read JSON data into a :class:`.DataFrame`.
This function wraps :func:`dask.dataframe.read_json`, and pa... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/text.py | # Copyright (c) 2022, NVIDIA CORPORATION.
import os
from glob import glob
import dask.dataframe as dd
from dask.base import tokenize
from dask.utils import apply, parse_bytes
import cudf
def read_text(path, chunksize="256 MiB", **kwargs):
if isinstance(chunksize, str):
chunksize = parse_bytes(chunksiz... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/__init__.py | # Copyright (c) 2018-2022, NVIDIA CORPORATION.
from .csv import read_csv
from .json import read_json
from .orc import read_orc, to_orc
from .text import read_text
try:
from .parquet import read_parquet, to_parquet
except ImportError:
pass
| 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_parquet.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import glob
import math
import os
import numpy as np
import pandas as pd
import pytest
import dask
from dask import dataframe as dd
from dask.utils import natural_sort_key
import cudf
import dask_cudf
# Check if create_metadata_file is supported by
# the current dask... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_csv.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import gzip
import os
import warnings
import numpy as np
import pandas as pd
import pytest
import dask
from dask import dataframe as dd
import cudf
import dask_cudf
@pytest.fixture
def csv_begin_bad_lines(tmp_path):
lines = """x
x
x
A, B, C, D
1,... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_orc.py | # Copyright (c) 2018-2022, NVIDIA CORPORATION.
import glob
import os
from datetime import datetime, timezone
import pytest
import dask
from dask import dataframe as dd
import cudf
import dask_cudf
cur_dir = os.path.dirname(__file__)
sample_orc = os.path.join(cur_dir, "data/orc/sample.orc")
def test_read_orc_bac... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_s3.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import os
import socket
from contextlib import contextmanager
from io import BytesIO
import pandas as pd
import pyarrow.fs as pa_fs
import pytest
import dask_cudf
moto = pytest.importorskip("moto", minversion="3.1.6")
boto3 = pytest.importorskip("boto3")
s3fs = pytest.... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_text.py | # Copyright (c) 2022, NVIDIA CORPORATION.
import os
import pytest
import dask.dataframe as dd
import cudf
import dask_cudf
cur_dir = os.path.dirname(__file__)
text_file = os.path.join(cur_dir, "data/text/sample.pgn")
@pytest.mark.parametrize("file", [text_file, [text_file]])
@pytest.mark.parametrize("chunksize"... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/test_json.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import os
import pandas as pd
import pytest
import dask
import dask.dataframe as dd
from dask.utils import tmpfile
import dask_cudf
def test_read_json_backend_dispatch(tmp_path):
# Test ddf.read_json cudf-backend dispatch
df1 = dask.datasets.timeseries(
... | 0 |
rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/data | rapidsai_public_repos/cudf/python/dask_cudf/dask_cudf/io/tests/data/text/sample.pgn | [Event "Rated Bullet tournament https://lichess.org/tournament/IaRkDsvp"]
[Site "https://lichess.org/r0cYFhsy"]
[White "GreatGig"]
[Black "hackattack"]
[Result "0-1"]
[UTCDate "2016.04.30"]
[UTCTime "22:00:03"]
[WhiteElo "1777"]
[BlackElo "1809"]
[WhiteRatingDiff "-11"]
[BlackRatingDiff "+11"]
[ECO "B01"]
[Opening "Sca... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf_kafka/pyproject.toml | # Copyright (c) 2021-2022, NVIDIA CORPORATION.
[build-system]
requires = [
"cython>=3.0.3",
"numpy>=1.21,<1.25",
"pyarrow==14.0.1.*",
"scikit-build>=0.13.1",
"setuptools",
"wheel",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml ... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf_kafka/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apa... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf_kafka/README.md | # <div align="left"><img src="img/rapids_logo.png" width="90px"/> cuDF - GPU DataFrames</div>
## π’ cuDF can now be used as a no-code-change accelerator for pandas! To learn more, see [here](https://rapids.ai/cudf-pandas/)!
cuDF is a GPU DataFrame library for loading joining, aggregating,
filtering, and otherwis... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf_kafka/setup.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
from setuptools import find_packages
from skbuild import setup
packages = find_packages(include=["cudf_kafka*"])
setup(
packages=packages,
package_data={
key: ["VERSION", "*.pxd", "*.hpp", "*.cuh"] for key in packages
},
zip_safe=False,
)
| 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf_kafka/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 0 |
rapidsai_public_repos/cudf/python/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/_version.py | # Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 |
rapidsai_public_repos/cudf/python/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/__init__.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from ._version import __git_commit__, __version__
| 0 |
rapidsai_public_repos/cudf/python/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/VERSION | 24.02.00
| 0 |
rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/_lib/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apa... | 0 |
rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/_lib/kafka.pyx | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from libc.stdint cimport int32_t, int64_t
from libcpp cimport bool, nullptr
from libcpp.map cimport map
from libcpp.memory cimport make_unique, unique_ptr
from libcpp.string cimport string
from libcpp.utility cimport move
from cudf._lib.cpp.io.datasource cimport datasour... | 0 |
rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka | rapidsai_public_repos/cudf/python/cudf_kafka/cudf_kafka/_lib/kafka.pxd | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
from libc.stdint cimport int32_t, int64_t
from libcpp cimport bool
from libcpp.map cimport map
from libcpp.memory cimport unique_ptr
from libcpp.string cimport string
from libcpp.vector cimport vector
from cudf._lib.cpp.io.datasource cimport datasource
from cudf._lib.io.... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/pyproject.toml | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"cmake>=3.26.4",
"cython>=3.0.3",
"ninja",
"numpy>=1.21,<1.25",
"protoc-wheel",
"pyarrow==14.0.1.*",
"rmm==24.2.*",
"scikit-build>=0.13.1",
"setuptools",
"wheel",
]... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/CMakeLists.txt | # =============================================================================
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apa... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/README.md | # <div align="left"><img src="img/rapids_logo.png" width="90px"/> cuDF - GPU DataFrames</div>
## π’ cuDF can now be used as a no-code-change accelerator for pandas! To learn more, see [here](https://rapids.ai/cudf-pandas/)!
cuDF is a GPU DataFrame library for loading joining, aggregating,
filtering, and otherwis... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/setup.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
from setuptools import find_packages
from skbuild import setup
packages = find_packages(include=["cudf*", "udf_cpp*"])
setup(
packages=packages,
package_data={
key: ["VERSION", "*.pxd", "*.hpp", "*.cuh"] for key in packages
},
zip_safe=False,
)
| 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/LICENSE | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 0 |
rapidsai_public_repos/cudf/python | rapidsai_public_repos/cudf/python/cudf/.coveragerc | # Configuration file for Python coverage tests
[run]
source = cudf
| 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/options.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION.
import os
import textwrap
from collections.abc import Container
from contextlib import ContextDecorator
from dataclasses import dataclass
from typing import Any, Callable, Dict, Optional
@dataclass
class Option:
default: Any
value: Any
description: str
v... | 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/_typing.py | # Copyright (c) 2021-2022, NVIDIA CORPORATION.
import sys
from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, TypeVar, Union
import numpy as np
from pandas import Period, Timedelta, Timestamp
from pandas.api.extensions import ExtensionDtype
if TYPE_CHECKING:
import cudf
# Backwards compat: mypy >= ... | 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/errors.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
class UnsupportedCUDAError(Exception):
pass
class MixedTypeError(TypeError):
pass
| 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/datasets.py | # Copyright (c) 2020-2022, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import cudf
from cudf._lib.transform import bools_to_mask
from cudf.core.column_accessor import ColumnAccessor
__all__ = ["timeseries", "randomdata"]
# TODO:
# change default of name from category to str type when nvstring are me... | 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/_version.py | # Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/__init__.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
# _setup_numba _must be called before numba.cuda is imported, because
# it sets the numba config variable responsible for enabling
# Minor Version Compatibility. Setting it after importing numba.cuda has no effect.
from cudf.utils._numba import _setup_numba
from cudf.util... | 0 |
rapidsai_public_repos/cudf/python/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/VERSION | 24.02.00
| 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/_ptxcompiler.py | # Copyright (c) 2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/ioutils.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import datetime
import os
import urllib
import warnings
from io import BufferedWriter, BytesIO, IOBase, TextIOWrapper
from threading import Thread
import fsspec
import fsspec.implementations.local
import numpy as np
import pandas as pd
from fsspec.core import get_fs_toke... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/string.py | # Copyright (c) 2022, NVIDIA CORPORATION.
def format_bytes(nbytes: int) -> str:
"""Format `nbytes` to a human readable string"""
n = float(nbytes)
for unit in ["B", "KiB", "MiB", "GiB", "TiB"]:
if abs(n) < 1024:
if n.is_integer():
return f"{int(n)}{unit}"
re... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/applyutils.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
import functools
from typing import Any, Dict
import cupy as cp
from numba import cuda
from numba.core.utils import pysignature
import cudf
from cudf import _lib as libcudf
from cudf.core.buffer import acquire_spill_lock
from cudf.core.column import column
from cudf.uti... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/docutils.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
"""
Helper functions for parameterized docstring
"""
import functools
import re
import string
_regex_whitespaces = re.compile(r"^\s+$")
def _only_spaces(s):
return bool(_regex_whitespaces.match(s))
_wrapopts = {"width": 78, "replace_whitespace": False}
def docf... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/gpu_utils.py | # Copyright (c) 2020-2022, NVIDIA CORPORATION.
def validate_setup():
import os
# TODO: Remove the following check once we arrive at a solution for #4827
# This is a temporary workaround to unblock internal testing
# related issue: https://github.com/rapidsai/cudf/issues/4827
if (
"RAPIDS_... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/_numba.py | # Copyright (c) 2023, NVIDIA CORPORATION.
import glob
import os
import sys
import warnings
from numba import config as numba_config
try:
from pynvjitlink.patch import (
patch_numba_linker as patch_numba_linker_pynvjitlink,
)
except ImportError:
def patch_numba_linker_pynvjitlink():
warni... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/__init__.py | # Copyright (c) 2020, NVIDIA CORPORATION.
| 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/queryutils.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
import ast
import datetime
from typing import Any, Dict
import numpy as np
from numba import cuda
import cudf
from cudf.core.buffer import acquire_spill_lock
from cudf.core.column import column_empty
from cudf.utils import applyutils
from cudf.utils._numba import _CUDFN... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/utils.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import decimal
import functools
import os
import traceback
import warnings
from typing import FrozenSet, Set, Union
import numpy as np
import pandas as pd
import rmm
import cudf
import cudf.api.types
from cudf.core import column
from cudf.core.buffer import as_buffer
... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/hash_vocab_utils.py | # Copyright (c) 2020-2022, NVIDIA CORPORATION.
# This function is from the rapidsai/clx repo at below link
# https://github.com/rapidsai/clx/blob/267c6d30805c9dcbf80840f222bf31c5c4b7068a/python/clx/analytics/_perfect_hash.py
import numpy as np
PRIME = np.uint64(281474976710677)
# Coefficients ranges for inner hash - ... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/cudautils.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
from pickle import dumps
import cachetools
from numba import cuda
from numba.np import numpy_support
from cudf.utils._numba import _CUDFNumbaConfig
#
# Misc kernels
#
@cuda.jit
def gpu_window_sizes_from_offset(arr, window_sizes, offset):
i = cuda.grid(1)
j = ... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/nvtx_annotation.py | # Copyright (c) 2023, NVIDIA CORPORATION.
import hashlib
from functools import partial
from nvtx import annotate
_NVTX_COLORS = ["green", "blue", "purple", "rapids"]
def _get_color_for_nvtx(name):
m = hashlib.sha256()
m.update(name.encode())
hash_value = int(m.hexdigest(), 16)
idx = hash_value % le... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/utils/dtypes.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import datetime
from collections import namedtuple
from decimal import Decimal
import cupy as cp
import numpy as np
import pandas as pd
import pyarrow as pa
from pandas.core.dtypes.common import infer_dtype_from_object
import cudf
from cudf._typing import DtypeObj
from ... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf/utils | rapidsai_public_repos/cudf/python/cudf/cudf/utils/metadata/orc_column_statistics.proto | syntax = "proto2";
message IntegerStatistics {
optional sint64 minimum = 1;
optional sint64 maximum = 2;
optional sint64 sum = 3;
}
message DoubleStatistics {
optional double minimum = 1;
optional double maximum = 2;
optional double sum = 3;
}
message StringStatistics {
optional string minimum = 1;
... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf/utils | rapidsai_public_repos/cudf/python/cudf/cudf/utils/metadata/__init__.py | # Copyright (c) 2020, NVIDIA CORPORATION.
| 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_sorting.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
import string
from itertools import product
import numpy as np
import pandas as pd
import pytest
from cudf import DataFrame, Series
from cudf.core.column import NumericalColumn
from cudf.testing._utils import (
DATETIME_TYPES,
NUMERIC_TYPES,
assert_eq,
a... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_parquet.py | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
import datetime
import glob
import math
import os
import pathlib
import random
from contextlib import contextmanager
from io import BytesIO
from string import ascii_letters
import cupy
import numpy as np
import pandas as pd
import pyarrow as pa
import pytest
from fsspec.... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_dataframe.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
import array as arr
import datetime
import decimal
import io
import operator
import random
import re
import string
import textwrap
import warnings
from collections import OrderedDict, defaultdict, namedtuple
from copy import copy
import cupy
import numpy as np
import pan... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_avro_reader_fastavro_integration.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_no_cuinit.py | # Copyright (c) 2023, NVIDIA CORPORATION.
import os
import subprocess
import sys
from shutil import which
import pytest
GDB_COMMANDS = """
set confirm off
set breakpoint pending on
break cuInit
run
exit
"""
@pytest.fixture(scope="module")
def cuda_gdb(request):
gdb = which("cuda-gdb")
if gdb is None:
... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_scalar.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
import datetime
import re
from decimal import Decimal
import numpy as np
import pandas as pd
import pyarrow as pa
import pytest
import rmm
import cudf
from cudf._lib.copying import get_element
from cudf.testing._utils import (
ALL_TYPES,
DATETIME_TYPES,
NUM... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_interval.py | # Copyright (c) 2020-2023, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
import cudf
from cudf.testing._utils import assert_eq
@pytest.mark.parametrize(
"data1, data2",
[(1, 2), (1.0, 2.0), (3, 4.0)],
)
@pytest.mark.parametrize("data3, data4", [(6, 10), (5.0, 9.0), (2, 6.0)])
@py... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_numerical.py | # Copyright (c) 2021-2023, NVIDIA CORPORATION.
import numpy as np
import pandas as pd
import pytest
import cudf
from cudf.core._compat import PANDAS_GE_150
from cudf.testing._utils import NUMERIC_TYPES, assert_eq
from cudf.utils.dtypes import np_dtypes_to_pandas_dtypes
def test_can_cast_safely_same_kind():
# 'i... | 0 |
rapidsai_public_repos/cudf/python/cudf/cudf | rapidsai_public_repos/cudf/python/cudf/cudf/tests/test_hash_vocab.py | # Copyright (c) 2020-2022, NVIDIA CORPORATION.
import filecmp
import os
import warnings
import pytest
from cudf.utils.hash_vocab_utils import hash_vocab
@pytest.fixture(scope="module")
def datadir(datadir):
return os.path.join(
datadir, "subword_tokenizer_data", "bert_base_cased_sampled"
)
def tes... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.