From 4740f15df91a779ccf2e923367a792ddcee5816e Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Mon, 12 Feb 2018 18:50:27 -0500 Subject: Misc. typos Found via `codespell -q 3 -I ../numpy-whitelist.txt` --- numpy/doc/structured_arrays.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/doc/structured_arrays.py') diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py index 02581d01b..af02e2173 100644 --- a/numpy/doc/structured_arrays.py +++ b/numpy/doc/structured_arrays.py @@ -246,7 +246,7 @@ alias for the field. The title may be used to index an array, just like a field name. To add titles when using the list-of-tuples form of dtype specification, the -field name may be be specified as a tuple of two strings instead of a single +field name may be specified as a tuple of two strings instead of a single string, which will be the field's title and field name respectively. For example:: -- cgit v1.2.1 From 1eef2af85df832b55c856935a820889cdee83581 Mon Sep 17 00:00:00 2001 From: mattip Date: Wed, 11 Apr 2018 14:23:07 +0300 Subject: formatting fixes --- numpy/doc/structured_arrays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/doc/structured_arrays.py') diff --git a/numpy/doc/structured_arrays.py b/numpy/doc/structured_arrays.py index af02e2173..ba667da59 100644 --- a/numpy/doc/structured_arrays.py +++ b/numpy/doc/structured_arrays.py @@ -284,7 +284,7 @@ the desired underlying dtype, and fields and flags will be copied from ``dtype``. This dtype is similar to a 'union' in C. Indexing and Assignment to Structured arrays -============================================= +============================================ Assigning data to a Structured Array ------------------------------------ @@ -293,7 +293,7 @@ There are a number of ways to assign values to a structured array: Using python tuples, using scalar values, or using other structured arrays. Assignment from Python Native Types (Tuples) -``````````````````````````````````````````` +```````````````````````````````````````````` The simplest way to assign values to a structured array is using python tuples. Each assigned value should be a tuple of length equal to the number of fields -- cgit v1.2.1