diff options
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/_add_newdocs.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index f71136eef..0368a911a 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -1601,6 +1601,11 @@ add_newdoc('numpy.core.multiarray', 'frombuffer', ------- out : ndarray + See also + -------- + ndarray.tobytes + Construct Python bytes from the raw data bytes in the array. + Notes ----- If the buffer has data that is not in machine byte-order, this should @@ -4458,6 +4463,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('tobytes', """ s : bytes Python bytes exhibiting a copy of `a`'s raw data. + See also + -------- + frombuffer : Construct a 1-dimensional array from Python bytes. + Examples -------- >>> x = np.array([[0, 1], [2, 3]], dtype='<u2') |
