8000 Merge pull request #8216 from gfyoung/doc-improvements · numpy/numpy@4083ea6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4083ea6

Browse files
authored
Merge pull request #8216 from gfyoung/doc-improvements
DOC: Patch doc errors for atleast_nd and frombuffer
2 parents 77ce5f4 + baef1f2 commit 4083ea6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

numpy/add_newdocs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ def luf(lamdaexpr, *args, **kwargs):
11261126
count : int, optional
11271127
Number of items to read. ``-1`` means all data in the buffer.
11281128
offset : int, optional
1129-
Start reading the buffer from this offset; default: 0.
1129+
Start reading the buffer from this offset (in bytes); default: 0.
11301130
11311131
Notes
11321132
-----

numpy/core/shape_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def atleast_1d(*arys):
2121
Returns
2222
-------
2323
ret : ndarray
24-
An array, or sequence of arrays, each with ``a.ndim >= 1``.
8000 24+
An array, or list of arrays, each with ``a.ndim >= 1``.
2525
Copies are made only if necessary.
2626
2727
See Also
@@ -72,7 +72,7 @@ def atleast_2d(*arys):
7272
Returns
7373
-------
7474
res, res2, ... : ndarray
75-
An array, or tuple of arrays, each with ``a.ndim >= 2``.
75+
An array, or list of arrays, each with ``a.ndim >= 2``.
7676
Copies are avoided where possible, and views with two or more
7777
dimensions are returned.
7878
@@ -124,7 +124,7 @@ def atleast_3d(*arys):
124124
Returns
125125
-------
126126
res1, res2, ... : ndarray
127-
An array, or tuple of arrays, each with ``a.ndim >= 3``. Copies are
127+
An array, or list of arrays, each with ``a.ndim >= 3``. Copies are
128128
avoided where possible, and views with three or more dimensions are
129129
returned. For example, a 1-D array of shape ``(N,)`` becomes a view
130130
of shape ``(1, N, 1)``, and a 2-D array of shape ``(M, N)`` becomes a

0 commit comments

Comments
 (0)
0