diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 09:18:37 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-09-21 20:29:43 +0200 |
commit | 83960267dc097742cb67ef575504afa56f82b102 (patch) | |
tree | 5de763d6385fc3fc630db0992cd6b2d2ff765ea6 /numpy/lib | |
parent | e467a284d1a2055337ce73cd92aadb491aa9a776 (diff) | |
download | numpy-83960267dc097742cb67ef575504afa56f82b102.tar.gz |
DOC: Typos found by codespell
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/format.py | 2 | ||||
-rw-r--r-- | numpy/lib/nanfunctions.py | 2 | ||||
-rw-r--r-- | numpy/lib/npyio.py | 2 | ||||
-rw-r--r-- | numpy/lib/twodim_base.py | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index e566e253d..3967b43ee 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -291,7 +291,7 @@ def descr_to_dtype(descr): Parameters ---------- descr : object - The object retreived by dtype.descr. Can be passed to + The object retrieved by dtype.descr. Can be passed to `numpy.dtype()` in order to replicate the input dtype. Returns diff --git a/numpy/lib/nanfunctions.py b/numpy/lib/nanfunctions.py index 658ec5255..4e77f0d92 100644 --- a/numpy/lib/nanfunctions.py +++ b/numpy/lib/nanfunctions.py @@ -975,7 +975,7 @@ def _nanmedian1d(arr1d, overwrite_input=False): ) if arr1d_parsed.size == 0: - # Ensure that a nan-esque scalar of the appropiate type (and unit) + # Ensure that a nan-esque scalar of the appropriate type (and unit) # is returned for `timedelta64` and `complexfloating` return arr1d[-1] diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index b91bf440f..a40b1ca66 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1634,7 +1634,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, ``usecols = (1, 4, 5)`` will extract the 2nd, 5th and 6th columns. names : {None, True, str, sequence}, optional If `names` is True, the field names are read from the first line after - the first `skip_header` lines. This line can optionally be preceeded + the first `skip_header` lines. This line can optionally be preceded by a comment delimiter. If `names` is a sequence or a single-string of comma-separated names, the names will be used to define the field names in a structured dtype. If `names` is None, the names of the dtype diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py index 83c028061..811faff79 100644 --- a/numpy/lib/twodim_base.py +++ b/numpy/lib/twodim_base.py @@ -67,7 +67,7 @@ def fliplr(m): See Also -------- flipud : Flip array in the up/down direction. - flip : Flip array in one or more dimesions. + flip : Flip array in one or more dimensions. rot90 : Rotate array counterclockwise. Notes @@ -120,7 +120,7 @@ def flipud(m): See Also -------- fliplr : Flip array in the left/right direction. - flip : Flip array in one or more dimesions. + flip : Flip array in one or more dimensions. rot90 : Rotate array counterclockwise. Notes |