summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorTyler Reddy <tyler.je.reddy@gmail.com>2018-12-05 11:48:11 -0800
committerTyler Reddy <tyler.je.reddy@gmail.com>2018-12-14 10:14:05 -0800
commit577a86e30014382c3fed1319379caa8728842543 (patch)
tree14043b6b19c88dc087e87fba20f9500a331b06db /numpy/core/fromnumeric.py
parent0bdc587d6cf5e6806e95d9debcafe62ac9f1d7fa (diff)
downloadnumpy-577a86e30014382c3fed1319379caa8728842543.tar.gz
MAINT: >>> # style cleanups requested
* reviewer requested that the cases where I switched from free-floating comments to `>>> # comments` be reverted to free-floating in docstrings
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 474556b30..240eac6ce 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -1645,7 +1645,7 @@ def ravel(a, order='C'):
Examples
--------
- >>> # It is equivalent to ``reshape(-1, order=order)``.
+ It is equivalent to ``reshape(-1, order=order)``.
>>> x = np.array([[1, 2, 3], [4, 5, 6]])
>>> np.ravel(x)
@@ -1657,15 +1657,15 @@ def ravel(a, order='C'):
>>> np.ravel(x, order='F')
array([1, 4, 2, 5, 3, 6])
- >>> # When ``order`` is 'A', it will preserve the array's 'C' or 'F' ordering:
+ When ``order`` is 'A', it will preserve the array's 'C' or 'F' ordering:
>>> np.ravel(x.T)
array([1, 4, 2, 5, 3, 6])
>>> np.ravel(x.T, order='A')
array([1, 2, 3, 4, 5, 6])
- >>> # When ``order`` is 'K', it will preserve orderings that are neither 'C'
- >>> # nor 'F', but won't reverse axes:
+ When ``order`` is 'K', it will preserve orderings that are neither 'C'
+ nor 'F', but won't reverse axes:
>>> a = np.arange(3)[::-1]; a
array([2, 1, 0])