DataFrames.jl
DataFrames.jl copied to clipboard
In-memory tabular data in Julia
Hello, Currently, we cannot sample from a GroupedDataFrame directly. ```julia julia> df = DataFrame(rand(100000, 100), :auto); gdf = groupby(df, :x1); # Code above from #3102 rand(gdf) # MethodError ``` Stacktrace...
``` function hvcat(rows::Tuple{Vararg{Int}}, d1::DataFrame, n1::NamedTuple, xs... ) Rows = reshape([d1,n1,xs...], 2, Int64(length(xs)/2)+1) |> permutedims |> eachrow vcat([hcat(d, DataFrame( n[1] isa AbstractArray ? n : fieldnames(n)[1] => repeat([n[1]],nrow(d)) )) for (d,n)...
I am looking for a fix or workaround for how to use `AsTable` in combination with several columns which should be transformed, i.e. `.=>`. I always get `ERROR: ArgumentError: Duplicate...
Related https://julialang.zulipchat.com/#narrow/stream/274208-helpdesk-.28published.29/topic/vcat.20dataframes.20with.20pooledarrays Currently we use `Tables.allocatecolumn` as it is safe. E.g. currently we have an issue with PooledArrays.jl https://github.com/JuliaData/PooledArrays.jl/issues/88 which current design handles correctly. Probably it would be better to...
``` julia> using DataFrames julia> df1 = DataFrame([:a => [1,2,3], :b=>[4, 5, 6]]) 3×2 DataFrame Row │ a b │ Int64 Int64 ─────┼────────────── 1 │ 1 4 2 │ 2...
I don't know if anything can be done about this even in a breaking version but I think this is very error prone. ```jl julia> let df = unstack(DataFrame(a=[2,1], x=["foo",...
The documentation discusses the fact that one can use either `names` and `propertynames` to get the name of variables in DataFrame, where the first function returns a vector of strings...
Currently we have an `ArgumentError` when `matchmissing==:error` and there are missings. Almost every time I run into this I have to look up what the other options are called. Could...
Hello, Thank you for putting this package together. It has helped a lot. I am working with time series dataframes and I've noticed that when performing join-operations with dataframes the...