blaze / datashape

Language defining a data description protocol
BSD 2-Clause "Simplified" License
183 stars 65 forks source link

Discover doesn't simultaneously handle var and heterogeneous types #100

Open mrocklin opened 10 years ago

mrocklin commented 10 years ago

Failing case

In [6]: discover([[1, 2, 3.0], [4.0, 5], [None, 6.0, 7]])
Out[6]: dshape("((int64, int64, float64), (float64, int64), (null, float64, int64))")

Should be

3 * var * ?float64
cpcloud commented 10 years ago

this is also a valid type signature:

In [8]: ds.DataShape(3, ds.var, ds.Option(ds.numeric))
Out[8]: dshape("3 * var * ?{numeric}")
cpcloud commented 9 years ago

If someone comes along needing this then we'll implement it.