summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2018-06-08 19:05:57 -0600
committerGitHub <noreply@github.com>2018-06-08 19:05:57 -0600
commitdf7b99c63b3686a25b10888e8374a936ab615de7 (patch)
treef6d71ec1093cff1135370d2503340af6689d8a6e
parenta50d45918e293defbfe145dffee8893c4f97f930 (diff)
parent77496008b3ab6b41002479ddde6c66744296e674 (diff)
downloadnumpy-df7b99c63b3686a25b10888e8374a936ab615de7.tar.gz
Merge pull request #11287 from numpy/pr/11063
DOC: Minor documentation improvements
-rw-r--r--numpy/doc/creation.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/doc/creation.py b/numpy/doc/creation.py
index 7de1c197c..9ebe938be 100644
--- a/numpy/doc/creation.py
+++ b/numpy/doc/creation.py
@@ -9,7 +9,7 @@ Introduction
There are 5 general mechanisms for creating arrays:
1) Conversion from other Python structures (e.g., lists, tuples)
-2) Intrinsic numpy array array creation objects (e.g., arange, ones, zeros,
+2) Intrinsic numpy array creation objects (e.g., arange, ones, zeros,
etc.)
3) Reading arrays from disk, either from standard or custom formats
4) Creating arrays from raw bytes through the use of strings or buffers
@@ -44,10 +44,10 @@ Intrinsic NumPy Array Creation
NumPy has built-in functions for creating arrays from scratch:
zeros(shape) will create an array filled with 0 values with the specified
-shape. The default dtype is float64.
+shape. The default dtype is float64. ::
-``>>> np.zeros((2, 3))
-array([[ 0., 0., 0.], [ 0., 0., 0.]])``
+ >>> np.zeros((2, 3))
+ array([[ 0., 0., 0.], [ 0., 0., 0.]])
ones(shape) will create an array filled with 1 values. It is identical to
zeros in all other respects.