summaryrefslogtreecommitdiff
path: root/numpy/doc/indexing.py
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Clarify docs on mixed advanced indexing and slicing (gh-15891)Paul Rougieux2020-04-201-4/+13
| | | | | | It was not clear how to reproduce the slice example with multi dimensional array indexing. I hope the additional example clarifies the equivalence between slice and multi array for new users. Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> Co-Authored-By: Anirudh Subramanian <anirudh2290@apache.org>
* MAINT: simplify code that assumes str/unicode and int/long are different ↵Eric Wieser2020-03-261-2/+1
| | | | | types (#15816) Cleanup from the dropping of python 2
* MAINT: Remove unnecessary 'from __future__ import ...' statementsJon Dufresne2020-01-031-1/+0
| | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior.
* MAINT: Misc. typo fixes (#13664)luzpaz2019-05-311-2/+3
| | | | | | * DOC, MAINT: Misc. typo fixes Found via `codespell`
* DOC: Update boolean indices in index arrays with slices exampleOri Broda2019-05-251-0/+7
|
* DOC: add copy on slicing noticewtli2019-03-141-1/+3
|
* DOC: Updated Slice Descriptionlogeaux2018-07-141-1/+1
|
* ENH: don't show boolean dtype, as it is impliedEric Wieser2017-11-131-1/+1
|
* MAINT: Don't internally use the one-argument whereEric Wieser2017-06-031-1/+1
| | | | nonzero is a clearer spelling
* DOC: fix typo in 'Indexing Multi-dimensional arrays'Kirill Balunov2017-02-071-2/+2
| | | | [ci skip]
* DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-061-2/+2
| | | | The strings in error messages were left untouched
* DOC: Fix more typos in docs and comments.Dongjoon Hyun2016-02-251-3/+3
|
* DOC: Update docs.Gabor Kovacs2015-06-211-6/+8
| | | | | | | Update docs for boolean array indexing and nonzero order. Add links to row-major and column-major terms where they appear. Closes #3177
* DOC: Fix typo and some grammarVraj Mohan2015-05-271-2/+2
|
* DOC: further tweaks to boolean indexing doc to improve clarityGary Oberbrunner2013-12-011-5/+5
|
* DOC: further improvements for boolean array indexing docGary Oberbrunner2013-11-291-7/+14
|
* DOC: Improved doc for boolean array indexingGary Oberbrunner2013-11-201-3/+25
|
* STY: Giant whitespace cleanup.Charles Harris2013-08-181-1/+0
| | | | Now is as good a time as any with open PR's at a low.
* 2to3: Apply `print` fixer.Charles Harris2013-04-061-1/+1
| | | | | | | Add `print_function` to all `from __future__ import ...` statements and use the python3 print function syntax everywhere. Closes #3078.
* 2to3: Use absolute imports.Charles Harris2013-03-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new import `absolute_import` is added the `from __future__ import` statement and The 2to3 `import` fixer is run to make the imports compatible. There are several things that need to be dealt with to make this work. 1) Files meant to be run as scripts run in a different environment than files imported as part of a package, and so changes to those files need to be skipped. The affected script files are: * all setup.py files * numpy/core/code_generators/generate_umath.py * numpy/core/code_generators/generate_numpy_api.py * numpy/core/code_generators/generate_ufunc_api.py 2) Some imported modules are not available as they are created during the build process and consequently 2to3 is unable to handle them correctly. Files that import those modules need a bit of extra work. The affected files are: * core/__init__.py, * core/numeric.py, * core/_internal.py, * core/arrayprint.py, * core/fromnumeric.py, * numpy/__init__.py, * lib/npyio.py, * lib/function_base.py, * fft/fftpack.py, * random/__init__.py Closes #3172
* 2to3: Put `from __future__ import division in every python file.Charles Harris2013-03-011-0/+2
| | | | | | | | This should be harmless, as we already are division clean. However, placement of this import takes some care. In the future a script can be used to append new features without worry, at least until such time as it exceeds a single line. Having that ability will make it easier to deal with absolute imports and printing updates.
* more docstring updates from pydoc website (thanks to everyone who contributed!)Jarrod Millman2010-02-171-103/+120
|
* fixed a whole bunch of doctestsPaul Ivanov2009-12-281-6/+12
|
* Move documentation outside of source tree. Remove `doc` import from __init__.Stefan van der Walt2008-08-231-0/+384