You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Converting each element of array to tuple is quite slow (with list comprehension) and broadcasting (like the sample above) in large inner-arrays is prone to stack overflow error.
I am just wondering what are the alternatives to get the same behavior is array of tuple without the need of converting each element to tuple?
Thanks!
The text was updated successfully, but these errors were encountered:
I notice there is different behavior in constructing over a nested array vs array of tuple.
The difference is that the first example follows a DataFrame constructor and the second is a conversion from a type supported by Tables.jl API to a DataFrame.
The second operation must be slower than the first one. But what could be potentially faster if you have many rows is:
DataFrame!([getindex.(src, i) for i in 1:maximum(length.(src))]);
(this will also check if all your inner vectors have the same length)
Hi,
I notice there is different behavior in constructing over a nested array vs array of tuple.
Converting each element of array to tuple is quite slow (with list comprehension) and broadcasting (like the sample above) in large inner-arrays is prone to stack overflow error.
I am just wondering what are the alternatives to get the same behavior is array of tuple without the need of converting each element to
tuple
?Thanks!
The text was updated successfully, but these errors were encountered: