summaryrefslogtreecommitdiff
path: root/numpy/doc/creation.py
diff options
context:
space:
mode:
authorNikita <nikitajz@users.noreply.github.com>2018-05-08 11:36:05 +0300
committerCharles Harris <charlesr.harris@gmail.com>2018-06-08 18:01:40 -0600
commitc49df0eb195b6438cf99c6ed87504e2c61f17d03 (patch)
tree2e7ff82118546c5d4ea74b522ed5b30597d53ae9 /numpy/doc/creation.py
parenta50d45918e293defbfe145dffee8893c4f97f930 (diff)
downloadnumpy-c49df0eb195b6438cf99c6ed87504e2c61f17d03.tar.gz
minor doc improvements
Diffstat (limited to 'numpy/doc/creation.py')
-rw-r--r--numpy/doc/creation.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/numpy/doc/creation.py b/numpy/doc/creation.py
index 7de1c197c..dfcde585f 100644
--- a/numpy/doc/creation.py
+++ b/numpy/doc/creation.py
@@ -9,8 +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,
- etc.)
+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
5) Use of special library functions (e.g., random)
@@ -44,10 +43,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.