@nnn wrote:
When I have data in columns, I can construct a DataFrame like this:
using Dataframes nameData = ["Alice", "Bob"] surnameData = ["Smith", "Jones"] df = DataFrame(name = nameData, surname = surnameData)
However I have data in rows:
row1 = ["Alice", "Smith"] row2 = ["Bob", "Jones"] df = DataFrame(???)
How can I make a DataFrame from it?
To generalize a question I have a large amount of row-aligned data in memory but outside of Julia and I need to construct a Julia DataFrame from it. What’s the fastest way to do that? Rows are always the same size but can contain different data types. Same column is always the same datatype for all rows.
Posts: 9
Participants: 7