Re: [Numpy-discussion] Structured array creation with list of lists and others

2017-03-26 Thread Kirill Balunov
Allan thank you for your draft! I agree with you that (not in mine ) in general case it would be hard to resolve all corner cases. Also I think if someone read numpy reference linearly, he/she will have some insight that list of tuples are necessary (but it was not my case). For me one problem is

Re: [Numpy-discussion] Structured array creation with list of lists and others

2017-03-24 Thread Allan Haldane
On 03/23/2017 02:16 PM, Kirill Balunov wrote: > It was the first time I tried to create a structured array in numpy. > Usually I use pandas for heterogeneous arrays, but it is one more > dependency to my project. > > It took me some time (really, much more than some), to understand the > problem w

Re: [Numpy-discussion] Structured array creation with list of lists and others

2017-03-24 Thread Slavin, Jonathan
Hi Kirill, ​T​ he idea is that each tuple assigns a name to the field and a data type. There are a variety of ways to create structured arrays but they all involve giving both a name and data type to each field (I think). See https://docs.scipy.org/doc/numpy/user/basics.rec.html ​Jon​ On Fri, M