Skip to content
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
bb2ebf6
add StringMethods docs
galipremsagar May 16, 2020
8e738a4
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 18, 2020
fd5897a
add Dataframe binary ops documentation
galipremsagar May 18, 2020
4a64655
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 18, 2020
040e8e4
add level param
galipremsagar May 18, 2020
04f30aa
exclude Dataframe.serialize & Dataframe.deserialize methods from docs
galipremsagar May 18, 2020
ef889cb
add Dataframe.equals docs
galipremsagar May 18, 2020
7d3f9d7
add memory_usage docs for DataFrame
galipremsagar May 18, 2020
875099c
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 18, 2020
dbb76ad
fix issues in DataFrame docs
galipremsagar May 18, 2020
3fc1152
fix formatting issue
galipremsagar May 18, 2020
0827ac0
exclude methods in Series for docs
galipremsagar May 18, 2020
5152774
remove unique_k
galipremsagar May 18, 2020
08d6b8f
add missing docs to public facing APIs
galipremsagar May 18, 2020
aa01ff5
add more docs for apis missing documentation in Series
galipremsagar May 19, 2020
a167ea5
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 19, 2020
2788770
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 19, 2020
165d35d
add missing docs for string apis
galipremsagar May 19, 2020
b1fdc6d
fix formatting issues
galipremsagar May 19, 2020
f0b2661
add copybutton to sphinx docs
galipremsagar May 19, 2020
73fd653
add .str support for StringIndex
galipremsagar May 19, 2020
63cae9c
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 19, 2020
10a061a
add examples to more string apis
galipremsagar May 20, 2020
1979389
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 20, 2020
f9b7cdf
add pip install for sphinx-copybutton
galipremsagar May 20, 2020
bf5ce47
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 20, 2020
4060533
add support for _constructor_expanddim in StringIndex
galipremsagar May 20, 2020
13f8d18
add docs and examples for string apis
galipremsagar May 20, 2020
86d231d
reformat few examples
galipremsagar May 20, 2020
82717d0
remove trailing newlines
galipremsagar May 20, 2020
612e4c9
remove legacy groupby from docs
galipremsagar May 20, 2020
a2fdb28
Add Categories to api.rst
galipremsagar May 20, 2020
97315ad
add docs for categorical apis
galipremsagar May 21, 2020
0dd37eb
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 21, 2020
76ec5d9
add docs and fix codes index in categorical accessor
galipremsagar May 21, 2020
45f8c2f
add all Index classes to docs
galipremsagar May 21, 2020
aa72229
fix argsort usage
galipremsagar May 21, 2020
170059f
fix Series.from_pandas doc
galipremsagar May 21, 2020
3efe491
add docs to Index apis
galipremsagar May 21, 2020
7afe14b
fix ngrams docs
galipremsagar May 21, 2020
f59ce10
hide merge method form docs as it is an internal limited functionalit…
galipremsagar May 21, 2020
f5b93b6
add index to unit-tests in categories
galipremsagar May 21, 2020
54accc3
add tests related to index.str support
galipremsagar May 22, 2020
de08620
add multiindex tests
galipremsagar May 22, 2020
0da1542
add Index.argsort tests
galipremsagar May 22, 2020
afaf917
add Index.to_series tests
galipremsagar May 22, 2020
c13d3fb
add copybutton.js
galipremsagar May 22, 2020
ac96082
add static files for newly added buttons
galipremsagar May 22, 2020
3a03901
Update CHANGELOG.md
galipremsagar May 22, 2020
335e453
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 22, 2020
4462f11
Merge branch 'docs' of https://github.com/galipremsagar/cudf into docs
galipremsagar May 22, 2020
ce558b7
Merge branch 'branch-0.14' into docs
galipremsagar May 22, 2020
f8c89f7
remove pip install for two sphinx packages and replace with conda
galipremsagar May 22, 2020
a31472f
Merge branch 'docs' of https://github.com/galipremsagar/cudf into docs
galipremsagar May 22, 2020
4e00ad3
Update python/cudf/cudf/core/index.py
galipremsagar May 22, 2020
12d147e
Update python/cudf/cudf/core/index.py
galipremsagar May 22, 2020
03a7633
Update python/cudf/cudf/core/index.py
galipremsagar May 22, 2020
c1e2786
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 22, 2020
00cf799
move all class docs to class.__init__ methods
galipremsagar May 22, 2020
e487c43
make index assignment as shallow copy
galipremsagar May 22, 2020
6623c94
fix multiindex level names
galipremsagar May 22, 2020
b98edd5
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar May 26, 2020
546a407
add GroupBy docs
galipremsagar May 26, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@
- PR #5208 Port search and join benchmark to libcudf++
- PR #5214 Move docs build script into repository
- PR #5219 Add per context cache for JIT kernels
- PR #5213 Documentation enhancements to `cudf` python APIs

## Bug Fixes

Expand Down
1 change: 1 addition & 0 deletions conda/environments/cudf_dev_cuda10.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies:
- hypothesis
- pip:
- sphinx-markdown-tables
- sphinx-copybutton
Comment thread
kkraus14 marked this conversation as resolved.
Resolved
- git+https://github.com/dask/dask.git
- git+https://github.com/dask/distributed.git
- git+https://github.com/python-streamz/streamz.git
1 change: 1 addition & 0 deletions conda/environments/cudf_dev_cuda10.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies:
- hypothesis
- pip:
- sphinx-markdown-tables
- sphinx-copybutton
- git+https://github.com/dask/dask.git
- git+https://github.com/dask/distributed.git
- git+https://github.com/python-streamz/streamz.git
1 change: 1 addition & 0 deletions conda/environments/cudf_dev_cuda10.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ dependencies:
- hypothesis
- pip:
- sphinx-markdown-tables
- sphinx-copybutton
- git+https://github.com/dask/dask.git
- git+https://github.com/dask/distributed.git
- git+https://github.com/python-streamz/streamz.git
65 changes: 65 additions & 0 deletions docs/cudf/source/_static/copybutton_pydocs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
$(document).ready(function() {
/* Add a [>>>] button on the top-right corner of code samples to hide
* the >>> and ... prompts and the output and thus make the code
* copyable. */
var div = $('.highlight-python .highlight,' +
'.highlight-python3 .highlight,' +
'.highlight-pycon .highlight,' +
'.highlight-default .highlight');
var pre = div.find('pre');

// get the styles from the current theme
pre.parent().parent().css('position', 'relative');
var hide_text = 'Hide the prompts and output';
var show_text = 'Show the prompts and output';
var border_width = pre.css('border-top-width');
var border_style = pre.css('border-top-style');
var border_color = pre.css('border-top-color');
var button_styles = {
'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0',
'border-color': border_color, 'border-style': border_style,
'border-width': border_width, 'text-size': '75%',
'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '1.5em',
'border-radius': '0 3px 0 0',
'transition': "0.5s"
}

// create and add the button to all the code blocks that contain >>>
div.each(function(index) {
var jthis = $(this);
if (jthis.find('.gp').length > 0) {
var button = $('<span id="strike_button" class="copybutton">&gt;&gt;&gt;</span>');
button.css(button_styles)
button.attr('title', hide_text);
button.data('hidden', 'false');
jthis.prepend(button);
}
// tracebacks (.gt) contain bare text elements that need to be
// wrapped in a span to work with .nextUntil() (see later)
jthis.find('pre:has(.gt)').contents().filter(function() {
return ((this.nodeType == 3) && (this.data.trim().length > 0));
}).wrap('<span>');
});

// define the behavior of the button when it's clicked
$('.copybutton').click(function(e){
e.preventDefault();
var button = $(this);
if (button.data('hidden') === 'false') {
// hide the code output
button.parent().find('.go, .gp, .gt').hide();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden');
button.css('text-decoration', 'line-through');
button.attr('title', show_text);
button.data('hidden', 'true');
} else {
// show the code output
button.parent().find('.go, .gp, .gt').show();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible');
button.css('text-decoration', 'none');
button.attr('title', hide_text);
button.data('hidden', 'false');
}
});
});

8 changes: 8 additions & 0 deletions docs/cudf/source/_static/params.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@
margin: 0.5em;
content: ":";
}

.highlight:hover span#strike_button {
color:#767676;
}

span#strike_button {
color :#d0ced7;
}
63 changes: 55 additions & 8 deletions docs/cudf/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DataFrame
---------
.. autoclass:: DataFrame
:members:
:exclude-members: serialize, deserialize

..
For cudf.concat function
Expand All @@ -20,7 +21,60 @@ Series

.. autoclass:: Series
:members:

:exclude-members: serialize, deserialize, logical_not, logical_or, logical_and, remainder, sum_of_squares, fill, merge

Strings
-------
.. currentmodule:: cudf.core.column.string

.. autoclass:: StringMethods
:members:

Index
-----
.. currentmodule:: cudf.core.index
.. autoclass:: Index
:members:
:exclude-members: serialize, deserialize, is_monotonic, is_monotonic_increasing, is_monotonic_decreasing

RangeIndex
----------
.. currentmodule:: cudf.core.index
.. autoclass:: RangeIndex
:members:
:exclude-members: deserialize, serialize

GenericIndex
------------
.. currentmodule:: cudf.core.index
.. autoclass:: GenericIndex
:members:

CategoricalIndex
----------------
.. currentmodule:: cudf.core.index
.. autoclass:: CategoricalIndex
:members:

StringIndex
-----------
.. currentmodule:: cudf.core.index
.. autoclass:: StringIndex
:members:

DatetimeIndex
-------------
.. currentmodule:: cudf.core.index
.. autoclass:: DatetimeIndex
:members:

Categories
----------
.. currentmodule:: cudf.core.column.categorical

.. autoclass:: CategoricalAccessor
:members:

Groupby
-------
.. currentmodule:: cudf.core.groupby.groupby
Expand All @@ -43,13 +97,6 @@ Groupby
Thus, manually specify the following for legacy_groupby.Groupby's docstring inclusion.
Other methods in the class are legacy duplicates of cudf.groupby.groupby.Groupby

Legacy Groupby
--------------
.. currentmodule:: cudf.core.groupby.legacy_groupby

.. autoclass:: Groupby
:members:
:exclude-members: serialize, deserialize

IO
--
Expand Down
8 changes: 6 additions & 2 deletions docs/cudf/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"sphinx.ext.intersphinx",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx_copybutton",
"numpydoc",
"sphinx_markdown_tables",
"IPython.sphinxext.ipython_console_highlighting",
Expand All @@ -47,6 +48,8 @@
"recommonmark",
]

copybutton_prompt_text = ">>> "

ipython_mplbackend = "str"

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -71,7 +74,7 @@
# built documents.
#
# The short X.Y version.
version = '0.14'
version = "0.14"
# The full version, including alpha/beta/rc tags.
release = cudf.__version__

Expand Down Expand Up @@ -192,11 +195,12 @@
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {"https://docs.python.org/": None}


# Config numpydoc
numpydoc_show_inherited_class_members = False
numpydoc_class_members_toctree = False


def setup(app):
app.add_js_file("copybutton_pydocs.js")
app.add_stylesheet("params.css")
app.add_stylesheet("https://docs.rapids.ai/assets/css/custom.css")
Loading