Dataframes.jl: Can writetable write to a stream?

Created on 12 Jul 2016  路  3Comments  路  Source: JuliaData/DataFrames.jl

It would be very useful if the writetable function could write to an IO stream as well as a file.

Most helpful comment

Just FYI, CSV.write(io, dataframe) is already supported in the CSV.jl package. The package has continued to evolve here and there, but has been pretty steady lately. I'm working on getting more docs/examples out there so it's more obvious everything that is supported, but you can pass any generic IO type to CSV.write to write out a DataFrame.

All 3 comments

This would be a good first PR to make. You should be able to copy the approach in writemime to generalize printtable: https://github.com/JuliaStats/DataFrames.jl/blob/b774e5ad6c02c9ec6ad7e3c04be143e5299e899a/src/abstractdataframe/io.jl

Just FYI, CSV.write(io, dataframe) is already supported in the CSV.jl package. The package has continued to evolve here and there, but has been pretty steady lately. I'm working on getting more docs/examples out there so it's more obvious everything that is supported, but you can pass any generic IO type to CSV.write to write out a DataFrame.

readtable writetable are now deprecated in favor of CSV.jl or TextParse.jl

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mattBrzezinski picture mattBrzezinski  路  5Comments

gustafsson picture gustafsson  路  6Comments

davidanthoff picture davidanthoff  路  4Comments

pdeffebach picture pdeffebach  路  8Comments

yakir12 picture yakir12  路  6Comments