@@ -17,7 +17,7 @@ number of elements remains the same.
17
17
18
18
### From existing data
19
19
20
- NumPy arrays can be created in several different ways. The simplest ways is
20
+ NumPy arrays can be created in several different ways. The simplest way is
21
21
to use the ** array** constructor and provide the data directly as an
22
22
argument. For example, in order to generate a one-dimensional array containing
23
23
the numbers 1,2,3,4 one can use:
@@ -36,7 +36,7 @@ number (e.g. [1, 2, 3.1, 4]) then the array created would have used floating
36
36
point type for all elements.
37
37
38
38
The first argument of ` array() ` is the data for the array. It can be a single
39
- list (or tuple), or a nested list of uniformly sized lists that mimicks a
39
+ list (or tuple), or a nested list of uniformly sized lists that mimics a
40
40
multi-dimensional array.
41
41
42
42
The second argument of ` array() ` is the datatype to be used for the array. It
@@ -208,7 +208,7 @@ Simple assignment creates a new reference to an array, just like for any other
208
208
Python object. Thus, if you modify the array using the new reference, the
209
209
changes are visible also via any old reference to the same array.
210
210
211
- To make a true copy of an array, one should use the * copy()* method:
211
+ To make a true copy of an array, one should use the ` copy() ` method:
212
212
213
213
~~~ python
214
214
a = np.arange(10 )
@@ -222,7 +222,7 @@ modifications to the elements in the view are directly reflected in the
222
222
original array. In fact, no real copy is made and as such any manipulation
223
223
will just change the original array.
224
224
225
- Once again, to make a true copy, one should use the * copy()* method:
225
+ Once again, to make a true copy, one should use the ` copy() ` method:
226
226
227
227
~~~ python
228
228
a = np.arange(10 )
0 commit comments