into: test foo <- CSV

@dispatch(np.ndarray, DataFrame)
def into(a, df):
    return df.to_records(index=False)



On Wed, Aug 13, 2014 at 8:32 AM, Phillip Cloud <notifications@github.com>
wrote:

> In blaze/api/into.py:
>
> > +
> > +
> > +@dispatch((np.ndarray, DataFrame, ColumnDataSource, ctable), DataDescriptor)
> > +def into(a, b, **kwargs):
> > +    return into(a, into(nd.array(), b), **kwargs)
> > +
> > +
> > +@dispatch((np.ndarray, DataFrame, ColumnDataSource, ctable), CSV)
> > +def into(a, b, **kwargs):
> > +    return into(a, into(DataFrame(), b), **kwargs)
> > +
> > +
> > +@dispatch(np.ndarray, CSV)
> > +def into(a, b, **kwargs):
> > +    return into(a, into(DataFrame(), b, **kwargs))
> > +    return np.loadtxt(b.path, dtype=datashape.to_numpy_dtype(b.schema),
>
> also i think the into(ndarray, DataFrame) calls values whereas here you
> would want a recarray
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ContinuumIO/blaze/pull/465/files#r16182698>.
>