Repository navigation
[REVIEW] Documentation enhancements to cudf python APIs
#5213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 51 commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
bb2ebf6
add StringMethods docs
galipremsagar 8e738a4
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar fd5897a
add Dataframe binary ops documentation
galipremsagar 4a64655
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 040e8e4
add level param
galipremsagar 04f30aa
exclude Dataframe.serialize & Dataframe.deserialize methods from docs
galipremsagar ef889cb
add Dataframe.equals docs
galipremsagar 7d3f9d7
add memory_usage docs for DataFrame
galipremsagar 875099c
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar dbb76ad
fix issues in DataFrame docs
galipremsagar 3fc1152
fix formatting issue
galipremsagar 0827ac0
exclude methods in Series for docs
galipremsagar 5152774
remove unique_k
galipremsagar 08d6b8f
add missing docs to public facing APIs
galipremsagar aa01ff5
add more docs for apis missing documentation in Series
galipremsagar a167ea5
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 2788770
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 165d35d
add missing docs for string apis
galipremsagar b1fdc6d
fix formatting issues
galipremsagar f0b2661
add copybutton to sphinx docs
galipremsagar 73fd653
add .str support for StringIndex
galipremsagar 63cae9c
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 10a061a
add examples to more string apis
galipremsagar 1979389
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar f9b7cdf
add pip install for sphinx-copybutton
galipremsagar bf5ce47
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 4060533
add support for _constructor_expanddim in StringIndex
galipremsagar 13f8d18
add docs and examples for string apis
galipremsagar 86d231d
reformat few examples
galipremsagar 82717d0
remove trailing newlines
galipremsagar 612e4c9
remove legacy groupby from docs
galipremsagar a2fdb28
Add Categories to api.rst
galipremsagar 97315ad
add docs for categorical apis
galipremsagar 0dd37eb
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 76ec5d9
add docs and fix codes index in categorical accessor
galipremsagar 45f8c2f
add all Index classes to docs
galipremsagar aa72229
fix argsort usage
galipremsagar 170059f
fix Series.from_pandas doc
galipremsagar 3efe491
add docs to Index apis
galipremsagar 7afe14b
fix ngrams docs
galipremsagar f59ce10
hide merge method form docs as it is an internal limited functionalit…
galipremsagar f5b93b6
add index to unit-tests in categories
galipremsagar 54accc3
add tests related to index.str support
galipremsagar de08620
add multiindex tests
galipremsagar 0da1542
add Index.argsort tests
galipremsagar afaf917
add Index.to_series tests
galipremsagar c13d3fb
add copybutton.js
galipremsagar ac96082
add static files for newly added buttons
galipremsagar 3a03901
Update CHANGELOG.md
galipremsagar 335e453
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 4462f11
Merge branch 'docs' of https://github.com/galipremsagar/cudf into docs
galipremsagar ce558b7
Merge branch 'branch-0.14' into docs
galipremsagar f8c89f7
remove pip install for two sphinx packages and replace with conda
galipremsagar a31472f
Merge branch 'docs' of https://github.com/galipremsagar/cudf into docs
galipremsagar 4e00ad3
Update python/cudf/cudf/core/index.py
galipremsagar 12d147e
Update python/cudf/cudf/core/index.py
galipremsagar 03a7633
Update python/cudf/cudf/core/index.py
galipremsagar c1e2786
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 00cf799
move all class docs to class.__init__ methods
galipremsagar e487c43
make index assignment as shallow copy
galipremsagar 6623c94
fix multiindex level names
galipremsagar b98edd5
Merge remote-tracking branch 'upstream/branch-0.14' into docs
galipremsagar 546a407
add GroupBy docs
galipremsagar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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">>>></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'); | ||
| } | ||
| }); | ||
| }); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.