And with the next release (available from git master) you will be able to do this directly: df = csv""" 1, 7.6 2, 45.6 3, 12.1 ... """
Regards Le lundi 21 mars 2016 à 09:39 -0600, Jacob Quinn a écrit : > You should be able to wrap the string in an IOBuffer, which satisfies > the general IO interface. > > e.g. > > io = IOBuffer(csv) > readtable(io) > > -Jacob > > On Mon, Mar 21, 2016 at 9:28 AM, jw3126 <[email protected]> wrote: > > I have a string which is secretly a csv like > > """ > > 1, 7.6 > > 2, 45.6 > > 3, 12.1 > > ... > > """ > > > > I want to turn it into a data frame. I guess I have to use > > readtable, however readtable accepts only IOStreams (or strings > > that are filepaths) and I don't know how to feed the string in a > > sane way to it. > >
