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/docs | rapidsai_public_repos/cudf/docs/dask_cudf/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set ... | 0 |
rapidsai_public_repos/cudf/docs | rapidsai_public_repos/cudf/docs/dask_cudf/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -n -v
SPHINXBUILD ?= sphinx-build
SPHINXPROJ = dask_cudf
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argume... | 0 |
rapidsai_public_repos/cudf/docs/dask_cudf | rapidsai_public_repos/cudf/docs/dask_cudf/source/conf.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information --------------------------------------------... | 0 |
rapidsai_public_repos/cudf/docs/dask_cudf | rapidsai_public_repos/cudf/docs/dask_cudf/source/api.rst | ===============
API reference
===============
This page provides a list of all publicly accessible modules, methods,
and classes in the ``dask_cudf`` namespace.
Creating and storing DataFrames
===============================
:doc:`Like Dask <dask:dataframe-create>`, Dask-cuDF supports creation
of DataFrames from a... | 0 |
rapidsai_public_repos/cudf/docs/dask_cudf | rapidsai_public_repos/cudf/docs/dask_cudf/source/index.rst | .. dask-cudf documentation coordinating file, created by
sphinx-quickstart on Mon Feb 6 18:48:11 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to dask-cudf's documentation!
=====================================
Dask-cuDF is an e... | 0 |
rapidsai_public_repos/cudf/docs | rapidsai_public_repos/cudf/docs/cudf/README.md | # Building Documentation
This directory contains the documentation of cuDF Python.
For more information on how to write, build, and read the documentation,
see
[the developer documentation](https://github.com/rapidsai/cudf/blob/HEAD/docs/cudf/source/developer_guide/documentation.md).
| 0 |
rapidsai_public_repos/cudf/docs | rapidsai_public_repos/cudf/docs/cudf/make.bat | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
set SPHINXPROJ=cudf
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make su... | 0 |
rapidsai_public_repos/cudf/docs | rapidsai_public_repos/cudf/docs/cudf/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -n -v -W --keep-going
SPHINXBUILD = sphinx-build
SPHINXPROJ = cudf
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBU... | 0 |
rapidsai_public_repos/cudf/docs/cudf | rapidsai_public_repos/cudf/docs/cudf/source/conf.py | # Copyright (c) 2018-2023, NVIDIA CORPORATION.
#
# cudf documentation build configuration file, created by
# sphinx-quickstart on Wed May 3 10:59:22 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | 0 |
rapidsai_public_repos/cudf/docs/cudf | rapidsai_public_repos/cudf/docs/cudf/source/index.rst | Welcome to the cuDF documentation!
==================================
.. figure:: _static/RAPIDS-logo-purple.png
:width: 300px
:align: center
**cuDF** is a Python GPU DataFrame library (built on the `Apache Arrow
<https://arrow.apache.org/>`_ columnar memory format) for loading, joining,
aggregating, filterin... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/cupy-interop.ipynb | import timeit
import cupy as cp
from packaging import version
import cudf
if version.parse(cp.__version__) >= version.parse("10.0.0"):
cupy_from_dlpack = cp.from_dlpack
else:
cupy_from_dlpack = cp.fromDlpacknelem = 10000
df = cudf.DataFrame(
{
"a": range(nelem),
"b": range(500, nelem + 50... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/10min.ipynb | import os
import cupy as cp
import pandas as pd
import cudf
import dask_cudf
cp.random.seed(12)
#### Portions of this were borrowed and adapted from the
#### cuDF cheatsheet, existing cuDF documentation,
#### and 10 Minutes to Pandas.s = cudf.Series([1, 2, 3, None, 4])
sds = dask_cudf.from_cudf(s, npartitions=2)
# ... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/missing-data.ipynb | import numpy as np
import cudfdf = cudf.DataFrame({"a": [1, 2, None, 4], "b": [0.1, None, 2.3, 17.17]})dfdf.isna()df["a"].notna()None == Nonenp.nan == np.nandf["b"] == np.nans = cudf.Series([None, 1, 2])ss == Nones = cudf.Series([1, 2, np.nan], nan_as_null=False)ss == np.nancudf.Series([1, 2, np.nan])cudf.Series([1, 2... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/copy-on-write.md | (copy-on-write-user-doc)=
# Copy-on-write
Copy-on-write is a memory management strategy that allows multiple cuDF objects containing the same data to refer to the same memory address as long as neither of them modify the underlying data.
With this approach, any operation that generates an unmodified view of an object... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/groupby.md | ---
myst:
substitutions:
describe: '`describe`'
---
(basics-groupby)=
# GroupBy
cuDF supports a small (but important) subset of Pandas' [groupby
API](https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html).
## Summary of supported operations
1. Grouping by one or more columns
2. Basic aggregati... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/guide-to-udfs.ipynb | import numpy as np
import cudf
from cudf.datasets import randomdata# Create a cuDF series
sr = cudf.Series([1, 2, 3])# define a scalar function
def f(x):
return x + 1sr.apply(f)def g(x, const):
return x + const# cuDF apply
sr.apply(g, args=(42,))# Create a cuDF series with nulls
sr = cudf.Series([1, cudf.NA, 3... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/PandasCompat.md | # Pandas Compatibility Notes
```{eval-rst}
.. pandas-compat-list::
```
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/index.md | # cuDF User Guide
```{toctree}
:maxdepth: 2
api_docs/index
10min
pandas-comparison
data-types
io/index
missing-data
groupby
guide-to-udfs
cupy-interop
options
performance-comparisons/index
PandasCompat
copy-on-write
```
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/pandas-comparison.md | # Comparison of cuDF and Pandas
cuDF is a DataFrame library that closely matches the Pandas API, but
when used directly is *not* a full drop-in replacement for Pandas. There are some
differences between cuDF and Pandas, both in terms of API and
behaviour. This page documents the similarities and differences
between ... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/data-types.md | # Supported Data Types
cuDF supports many data types supported by NumPy and Pandas, including
numeric, datetime, timedelta, categorical and string data types. We
also provide special data types for working with decimals, list-like,
and dictionary-like data.
All data types in cuDF are [nullable](missing-data).
<div c... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/options.md | (options_user_guide)=
# Options
cuDF has an options API to configure and customize global behavior.
This API complements the [pandas.options](https://pandas.pydata.org/docs/user_guide/options.html) API with features specific to cuDF.
{py:func}`cudf.describe_option` will print the option's description,
the current va... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/performance-comparisons/performance-comparisons.ipynb | import os
import time
import timeit
from io import BytesIO
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import cudfnp.random.seed(0)num_rows = 300_000_000
pdf = pd.DataFrame(
{
"numbers": np.random.randint(-1000, 1000, num_rows, dtype="int64"),
"business": np.random.choic... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/performance-comparisons/index.md | # Performance comparisons
```{toctree}
:maxdepth: 2
performance-comparisons
```
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/dataframe.rst | =========
DataFrame
=========
.. currentmodule:: cudf
Constructor
~~~~~~~~~~~
.. autosummary::
:toctree: api/
DataFrame
Attributes and underlying data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Axes**
.. autosummary::
:toctree: api/
DataFrame.axes
DataFrame.index
DataFrame.columns
.. autosummary::
:toc... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/index_objects.rst | =============
Index objects
=============
Index
-----
.. currentmodule:: cudf
**Many of these methods or variants thereof are available on the objects
that contain an index (Series/DataFrame) and those should most likely be
used before calling these methods directly.**
.. autosummary::
:toctree: api/
Index
P... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/series.rst | ======
Series
======
.. currentmodule:: cudf
Constructor
-----------
.. autosummary::
:toctree: api/
Series
Attributes
----------
**Axes**
.. autosummary::
:toctree: api/
Series.axes
Series.index
Series.values
Series.data
Series.dtype
Series.shape
Series.ndim
Series.nullable
Ser... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/options.rst | .. _api.options:
====================
Options and settings
====================
.. autosummary::
:toctree: api/
cudf.get_option
cudf.set_option
cudf.describe_option
cudf.option_context
Available options
-----------------
You can get a list of available options and their descriptions with :func:`~cu... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/io.rst | .. _api.io:
============
Input/output
============
.. currentmodule:: cudf
CSV
~~~
.. autosummary::
:toctree: api/
read_csv
DataFrame.to_csv
Text
~~~~
.. autosummary::
:toctree: api/
read_text
JSON
~~~~
.. autosummary::
:toctree: api/
read_json
DataFrame.to_json
Parquet
~~~~~~~
.. autosu... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/struct_handling.rst | Struct handling
~~~~~~~~~~~~~~~
``Series.struct`` can be used to access the values of the series as
Structs and apply struct methods to it. These can be accessed like
``Series.struct.<function/property>``.
.. currentmodule:: cudf
.. autosummary::
:toctree: api/
Series.struct
.. currentmodule:: cudf.core.colum... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/subword_tokenize.rst | ================
SubwordTokenizer
================
.. currentmodule:: cudf.core.subword_tokenizer
Constructor
~~~~~~~~~~~
.. autosummary::
:toctree: api/
SubwordTokenizer
SubwordTokenizer.__call__
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/window.rst | .. _api.window:
======
Window
======
Rolling objects are returned by ``.rolling`` calls: :func:`cudf.DataFrame.rolling`, :func:`cudf.Series.rolling`, etc.
.. _api.functions_rolling:
Rolling window functions
------------------------
.. currentmodule:: cudf.core.window.rolling
.. autosummary::
:toctree: api/
... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/list_handling.rst | List handling
~~~~~~~~~~~~~
``Series.list`` can be used to access the values of the series as
lists and apply list methods to it. These can be accessed like
``Series.list.<function/property>``.
.. currentmodule:: cudf
.. autosummary::
:toctree: api/
Series.list
.. currentmodule:: cudf.core.column.lists.ListMe... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/general_functions.rst | =================
General Functions
=================
.. currentmodule:: cudf
Data manipulations
------------------
.. autosummary::
:toctree: api/
cudf.concat
cudf.crosstab
cudf.cut
cudf.factorize
cudf.get_dummies
cudf.melt
cudf.merge
cudf.pivot
cudf.pivot_table
cudf.unstack
Top-le... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/groupby.rst | .. _api.groupby:
=======
GroupBy
=======
.. currentmodule:: cudf.core.groupby
GroupBy objects are returned by groupby calls: :func:`cudf.DataFrame.groupby`, :func:`cudf.Series.groupby`, etc.
Indexing, iteration
-------------------
.. autosummary::
:toctree: api/
GroupBy.__iter__
GroupBy.groups
.. currentm... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/extension_dtypes.rst | ================
Extension Dtypes
================
.. currentmodule:: cudf.core.dtypes
cuDF supports a number of extension dtypes that build on top of the types that pandas supports. These dtypes are not directly available in pandas, which instead relies on object dtype arrays that run at Python rather than native spe... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/string_handling.rst | String handling
~~~~~~~~~~~~~~~
``Series.str`` can be used to access the values of the series as
strings and apply several methods to it. These can be accessed like
``Series.str.<function/property>``.
.. currentmodule:: cudf
.. autosummary::
:toctree: api/
Series.str
.. currentmodule:: cudf.core.column.string... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/general_utilities.rst | =================
General Utilities
=================
Testing functions
-----------------
.. autosummary::
:toctree: api/
cudf.testing.testing.assert_column_equal
cudf.testing.testing.assert_frame_equal
cudf.testing.testing.assert_index_equal
cudf.testing.testing.assert_series_equal
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/api_docs/index.rst | =============
API reference
=============
This page provides a list of all publicly accessible modules, methods and classes through
``cudf.*`` namespace.
.. toctree::
:maxdepth: 2
:caption: API Documentation
series
dataframe
index_objects
groupby
general_functions
general_utilities
... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/io/io.md | # Input / Output
This page contains Input / Output related APIs in cuDF.
## I/O Supported dtypes
The following table lists are compatible cudf types for each supported
IO format.
<div class="special-table-wrapper" style="overflow:auto">
```{eval-rst}
.. table::
:class: io-supported-types-table special-table
... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/io/read-json.md | # Working with JSON data
This page contains a tutorial about reading and manipulating JSON data in cuDF.
## Reading JSON data
By default, the cuDF JSON reader expects input data using the
"records" orientation. Records-oriented JSON data comprises
an array of objects at the root level, and each object in the
array c... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/user_guide | rapidsai_public_repos/cudf/docs/cudf/source/user_guide/io/index.md | # Input / Output
```{toctree}
:maxdepth: 2
io
read-json
```
| 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/cudf_pandas/usage.md | # Usage
## Jupyter Notebooks and IPython
Load the `cudf.pandas` extension at the beginning of your
notebook. After that, just `import pandas` and operations will use the
GPU:
```python
%load_ext cudf.pandas
import pandas as pd
URL = "https://github.com/plotly/datasets/raw/master/tips.csv"
df = pd.read_csv(URL) ... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/cudf_pandas/benchmarks.md | # Benchmarks
## Database-like ops benchmarks
We reproduced the [Database-like ops benchmark](https://duckdblabs.github.io/db-benchmark/)
including a solution using `cudf.pandas`. Here are the results:
<figure>

<figcaption style="text-al... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/cudf_pandas/how-it-works.md | # How it Works
When `cudf.pandas` is activated, `import pandas` (or any of its
submodules) imports a proxy module, rather than "regular" pandas. This
proxy module contains proxy types and proxy functions:
```python
In [1]: %load_ext cudf.pandas
In [2]: import pandas as pd
In [3]: pd
Out[3]: <module 'pandas' (Module... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/cudf_pandas/faq.md | # FAQ and Known Issues
## When should I use `cudf.pandas` vs using the cuDF library directly?
`cudf.pandas` is the quickest and easiest way to get pandas code
running on the GPU. However, there are some situations in which using
the cuDF library directly should be considered.
- cuDF implements a subset of the pandas... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/cudf_pandas/index.rst | cudf.pandas
-----------
cuDF pandas accelerator mode (``cudf.pandas``) is built on cuDF and
**accelerates pandas code** on the GPU. It supports **100% of the
Pandas API**, using the GPU for supported operations, and
automatically **falling back to pandas** for other operations.
.. code-block:: python
%load_ext c... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/testing.md | # Testing cuDF
## Tooling
Tests in cuDF are written using [`pytest`](https://docs.pytest.org/en/latest/).
Test coverage is measured using [`coverage.py`](https://coverage.readthedocs.io/en/latest/),
specifically the [`pytest-cov`](https://github.com/pytest-dev/pytest-cov) plugin.
Code coverage reports are uploaded to ... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/benchmarking.md | # Benchmarking cuDF
The goal of the benchmarks in this repository is to measure the performance of various cuDF APIs.
Benchmarks in cuDF are written using the
[`pytest-benchmark`](https://pytest-benchmark.readthedocs.io/en/latest/index.html) plugin to the
[`pytest`](https://docs.pytest.org/en/latest/) Python testing f... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/pylibcudf.md | # pylibcudf
pylibcudf is a lightweight Cython wrapper around libcudf.
It aims to provide a near-zero overhead interface to accessing libcudf in Python.
It should be possible to achieve near-native C++ performance using Cythonized code calling pylibcudf, while also allowing fairly performant usage from Python.
In addit... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/documentation.md | # Writing documentation
cuDF documentation is split into multiple pieces.
All core functionality is documented using inline docstrings.
Additional pages like user or developer guides are written independently.
While docstrings are written using [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructured... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/index.md | # Developer Guide
```{note}
At present, this guide only covers the main cuDF library.
In the future, it may be expanded to also cover dask_cudf, cudf_kafka, and custreamz.
```
cuDF is a GPU-accelerated, [Pandas-like](https://pandas.pydata.org/) DataFrame library.
Under the hood, all of cuDF's functionality relies on ... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/library_design.md | # Library Design
At a high level, cuDF is structured in three layers, each of which serves a distinct purpose:
1. The Frame layer: The user-facing implementation of pandas-like data structures like `DataFrame` and `Series`.
2. The Column layer: The core internal data structures used to bridge the gap to our lower-lev... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/options.md | # Options
The usage of options is explained in the [user guide](options_user_guide).
This document provides more explanations on how developers work with options internally.
Options are stored as a dictionary in the `cudf.options` module.
Each option name is its key in the dictionary.
The value of the option is an in... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/developer_guide/contributing_guide.md | # Contributing Guide
This document focuses on a high-level overview of best practices in cuDF.
## Directory structure and file naming
cuDF generally presents the same importable modules and subpackages as pandas.
All Cython code is contained in `python/cudf/cudf/_lib`.
## Code style
cuDF employs a number of linter... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source | rapidsai_public_repos/cudf/docs/cudf/source/_ext/PandasCompat.py | # Copyright (c) 2021-2022, NVIDIA CORPORATION
# This file is adapted from official sphinx tutorial for `todo` extension:
# https://www.sphinx-doc.org/en/master/development/tutorials/todo.html
from docutils import nodes
from docutils.parsers.rst import Directive
from sphinx.locale import get_translation
from sphinx.ut... | 0 |
rapidsai_public_repos/cudf/docs/cudf/source/_templates | rapidsai_public_repos/cudf/docs/cudf/source/_templates/autosummary/class.rst | {{ fullname }}
{{ underline }}
.. currentmodule:: {{ module }}
.. autoclass:: {{ objname }}
..
Don't include the methods or attributes sections, numpydoc adds them for us instead.
| 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_cpp_memcheck.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
source "$(dirname "$0")/test_cpp_common.sh"
EXITCODE=0
trap "EXITCODE=1" ERR
set +e
# Run gtests with compute-sanitizer
rapids-logger "Memcheck gtests with rmm_mode=cuda"
export GTEST_CUDF_RMM_MODE=cuda
COMPUTE_SANITIZER_CMD="compute-sanitizer --tool memcheck"
fo... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_cpp.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
source "$(dirname "$0")/test_cpp_common.sh"
EXITCODE=0
trap "EXITCODE=1" ERR
set +e
# Run libcudf and libcudf_kafka gtests from libcudf-tests package
export GTEST_OUTPUT=xml:${RAPIDS_TESTS_DIR}/
pushd $CONDA_PREFIX/bin/gtests/libcudf/
rapids-logger "Run lib... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_python.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
source rapids-env-update
export CMAKE_GENERATOR=Ninja
rapids-print-env
package_dir="python"
version=$(rapids-generate-version)
commit=$(git rev-parse HEAD)
echo "${version}" > VERSION
for package_name in cudf dask_cudf cudf_kafka custrea... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_wheel_dask_cudf.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -eou pipefail
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"
RAPIDS_PY_WHEEL_NAME="dask_cudf_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-s3 ./dist
# Download the cudf built in the previous step
# Set the manylinux versio... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_python_common.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Common setup steps shared by Python test jobs
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate Python testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_python \
--matrix "cuda=${RA... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_wheel.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
package_name=$1
package_dir=$2
source rapids-configure-sccache
source rapids-date-string
version=$(rapids-generate-version)
commit=$(git rev-parse HEAD)
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"
# This is the... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_python_cudf.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Common setup steps shared by Python test jobs
source "$(dirname "$0")/test_python_common.sh"
rapids-logger "Check GPU usage"
nvidia-smi
EXITCODE=0
trap "EXITCODE=1" ERR
set +e
rapids-logger "pytest cudf"
pushd python/cudf/cudf
# It is essential to cd into... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_wheel_dask_cudf.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
package_dir="python/dask_cudf"
./ci/build_wheel.sh dask_cudf ${package_dir}
RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})"
RAPIDS_PY_WHEEL_NAME="dask_cudf_${RAPIDS_PY_CUDA_SUFFIX}" rapids-upload-wheels-to-s3 ${packa... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/check_style.sh | #!/bin/bash
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
set -euo pipefail
rapids-logger "Create checks conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--output conda \
--file_key checks \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}"... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_wheel_cudf.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -eou pipefail
# Set the manylinux version used for downloading the wheels so that we test the
# newer ABI wheels on the newer images that support their installation.
# Need to disable pipefail for the head not to fail, see
# https://stackoverflow.com/questions... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_cpp_common.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate C++ testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_cpp \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml
rap... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_cpp.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
source rapids-env-update
export CMAKE_GENERATOR=Ninja
rapids-print-env
version=$(rapids-generate-version)
rapids-logger "Begin cpp build"
# With boa installed conda build forward to boa
RAPIDS_PACKAGE_VERSION=${version} rapids-conda-ret... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_java.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate Java testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_java \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch)" | tee env.yaml
r... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_python_other.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Common setup steps shared by Python test jobs
source "$(dirname "$0")/test_python_common.sh"
rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
--channel "${PYTHON_CHANNEL}" \
dask-cudf cudf_kafka custreamz
rapids-logger "Check GPU usage"
nvid... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/test_notebooks.sh | #!/bin/bash
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
set -euo pipefail
. /opt/conda/etc/profile.d/conda.sh
rapids-logger "Generate notebook testing dependencies"
rapids-dependency-file-generator \
--output conda \
--file_key test_notebooks \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPI... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/wheel_smoke_test_cudf.py | # Copyright (c) 2022-2023, NVIDIA CORPORATION.
import cudf
import pyarrow as pa
if __name__ == '__main__':
n_legs = pa.array([2, 4, 5, 100])
animals = pa.array(["Flamingo", "Horse", "Brittle stars", "Centipede"])
names = ["n_legs", "animals"]
foo = pa.table([n_legs, animals], names=names)
df = cud... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_wheel_cudf.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
package_dir="python/cudf"
export SKBUILD_CONFIGURE_OPTIONS="-DCUDF_BUILD_WHEELS=ON -DDETECT_CONDA_ENV=OFF"
./ci/build_wheel.sh cudf ${package_dir}
python -m auditwheel repair -w ${package_dir}/final_dist ${package_dir}/dist/*
RAPIDS_PY_CUDA_... | 0 |
rapidsai_public_repos/cudf | rapidsai_public_repos/cudf/ci/build_docs.sh | #!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.
set -euo pipefail
rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh
rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee en... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/release/update-version.sh | #!/bin/bash
# Copyright (c) 2020-2023, NVIDIA CORPORATION.
########################
# cuDF Version Updater #
########################
## Usage
# bash update-version.sh <new_version>
# Format is YY.MM.PP - no leading 'v' or trailing 'a'
NEXT_FULL_TAG=$1
# Get current version
CURRENT_TAG=$(git tag --merged HEAD | gre... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/utils/nbtest.sh | #!/bin/bash
# Copyright (c) 2020-2022, NVIDIA CORPORATION.
MAGIC_OVERRIDE_CODE="
def my_run_line_magic(*args, **kwargs):
g=globals()
l={}
for a in args:
try:
exec(str(a),g,l)
except Exception as e:
print('WARNING: %s\n While executing this magic function code:\n%s\... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/utils/nbtestlog2junitxml.py | # Copyright (c) 2020-2022, NVIDIA CORPORATION.
# Generate a junit-xml file from parsing a nbtest log
import re
from xml.etree.ElementTree import Element, ElementTree
from os import path
import string
from enum import Enum
startingPatt = re.compile(r"^STARTING: ([\w\.\-]+)$")
skippingPatt = re.compile(r"^SKIPPING: ([... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/cudf_pandas_scripts/run_tests.sh | #!/bin/bash
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
set -eoxu pipefail
# Function to display script usage
function display_usage {
echo "Usage: $0 [--no-cudf]"
}
# Default value for the --no-cudf option
no_cudf=fal... | 0 |
rapidsai_public_repos/cudf/ci/cudf_pandas_scripts | rapidsai_public_repos/cudf/ci/cudf_pandas_scripts/pandas-tests/job-summary.py | # SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
import json
import sys
import pandas as pd
def get_total_and_passed(results):
total_failed = 0
total_errored = 0
total_passed = 0
for module_name, row in results... | 0 |
rapidsai_public_repos/cudf/ci/cudf_pandas_scripts | rapidsai_public_repos/cudf/ci/cudf_pandas_scripts/pandas-tests/diff.sh | #!/usr/bin/env bash
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# Download the summarized results of running the Pandas tests on both the main
# branch and the PR branch:
# Hard-coded needs to match the version deduced by r... | 0 |
rapidsai_public_repos/cudf/ci/cudf_pandas_scripts | rapidsai_public_repos/cudf/ci/cudf_pandas_scripts/pandas-tests/run.sh | #!/usr/bin/env bash
# SPDX-FileCopyrightText: Copyright (c) 2023 NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
PANDAS_TESTS_BRANCH=${1}
rapids-logger "Running Pandas tests using $PANDAS_TESTS_BRANCH branch"
rapids-logger "PR number: $RAPIDS_REF_NAME"
# Set the manylinu... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/checks/doxygen.sh | #!/bin/bash
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
###############################
# cuDF doxygen warnings check #
###############################
# skip if doxygen is not installed
if ! [ -x "$(command -v doxygen)" ]; then
echo -e "warning: doxygen is not installed"
exit 0
fi
# Utility to return version ... | 0 |
rapidsai_public_repos/cudf/ci | rapidsai_public_repos/cudf/ci/checks/copyright.py | # Copyright (c) 2019-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 | rapidsai_public_repos/dask-cuda/.pre-commit-config.yaml | repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/... | 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/pyproject.toml | [build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64.0.0",
"tomli ; python_version < '3.11'",
] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit dependencies.yaml and run `rapids-dependency-file-generator`.
[project]
name = "dask-cuda"
dynami... | 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/.flake8 | [flake8]
exclude = docs, __init__.py
max-line-length = 88
ignore =
# Assigning lambda expression
E731
# Ambiguous variable names
E741
# line break before binary operator
W503
# whitespace before :
E203
# whitespace after ,
E231
| 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/README.md | Dask CUDA
=========
Various utilities to improve deployment and management of Dask workers on
CUDA-enabled systems.
This library is experimental, and its API is subject to change at any time
without notice.
Example
-------
```python
from dask_cuda import LocalCUDACluster
from dask.distributed import Client
cluster... | 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/CHANGELOG.md | # dask-cuda 23.10.00 (11 Oct 2023)
## 🐛 Bug Fixes
- Monkeypatch protocol.loads ala dask/distributed#8216 ([#1247](https://github.com/rapidsai/dask-cuda/pull/1247)) [@wence-](https://github.com/wence-)
- Explicit-comms: preserve partition IDs ([#1240](https://github.com/rapidsai/dask-cuda/pull/1240)) [@madsbk](https:... | 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/codecov.yml | #Configuration File for CodeCov
ignore:
- "dask_cuda/benchmarks/*" # benchmarks aren't covered
| 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/MANIFEST.in | include dask_cuda/_version.py
include dask_cuda/VERSION
| 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/dependencies.yaml | # Dependency list for https://github.com/rapidsai/dependency-file-generator
files:
all:
output: none
includes:
- build_python
- cudatoolkit
- develop
- docs
- py_version
- run_python
- test_python
test_python:
output: none
includes:
- cudatoolkit
... | 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/setup.py | from setuptools import setup
setup()
| 0 |
rapidsai_public_repos | rapidsai_public_repos/dask-cuda/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/dask-cuda/VERSION | 24.02.00
| 0 |
rapidsai_public_repos/dask-cuda/conda/recipes | rapidsai_public_repos/dask-cuda/conda/recipes/dask-cuda/meta.yaml | # Copyright (c) 2019-2023, NVIDIA CORPORATION.
# Usage:
# conda build -c conda-forge .
{% set data = load_file_data("pyproject.toml") %}
{% set version = environ['RAPIDS_PACKAGE_VERSION'].strip('""').lstrip('v') %}
{% set py_version = environ['CONDA_PY'] %}
{% set date_string = environ['RAPIDS_DATE_STRING'] %}
pac... | 0 |
rapidsai_public_repos/dask-cuda | rapidsai_public_repos/dask-cuda/docs/Makefile | # Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $... | 0 |
rapidsai_public_repos/dask-cuda/docs | rapidsai_public_repos/dask-cuda/docs/source/quickstart.rst | Quickstart
==========
A Dask-CUDA cluster can be created using either LocalCUDACluster or ``dask cuda worker`` from the command line.
LocalCUDACluster
----------------
To create a Dask-CUDA cluster using all available GPUs and connect a Dask.distributed `Client <https://distributed.dask.org/en/latest/client.html>`_ ... | 0 |
rapidsai_public_repos/dask-cuda/docs | rapidsai_public_repos/dask-cuda/docs/source/install.rst | Installation
============
Dask-CUDA can be installed using ``conda``, ``pip``, or from source.
Conda
-----
To use Dask-CUDA on your system, you will need:
- NVIDIA drivers for your GPU; see `NVIDIA Driver Installation Quickstart Guide <https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html>`_ ... | 0 |
rapidsai_public_repos/dask-cuda/docs | rapidsai_public_repos/dask-cuda/docs/source/troubleshooting.rst | Troubleshooting
===============
This is a list of common issues encountered with Dask-CUDA and various systems.
Wrong Device Indexing
---------------------
It's common to rely on the device indexing presented by ``nvidia-smi`` when creating workers, and that is the default
in Dask-CUDA. In most cases, ``nvidia-smi`... | 0 |
rapidsai_public_repos/dask-cuda/docs | rapidsai_public_repos/dask-cuda/docs/source/spilling.rst | Spilling from device
====================
By default, Dask-CUDA enables spilling from GPU to host memory when a GPU reaches a memory utilization of 80%.
This can be changed to suit the needs of a workload, or disabled altogether, by explicitly setting ``device_memory_limit``.
This parameter accepts an integer or strin... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.