DataFrames.jl
DataFrames.jl copied to clipboard
In-memory tabular data in Julia
I found myself wanting to find the keys of the DataFrame, ordered by some comparator of their columns. As it stands, it seems that the most straightforward way to do...
`subset` has `skipmissing=` but `filter` doesn't. It would be convenient to have it.
`innerjoin` takes a `renamecols` function but `transform` doesn't. I want to say `transform(... => AsTable; renamecols=x->"foo$x")`.
unnest
Extract a table-valued column into top-level columns. Code by Bogumił Kamiński on Slack. ```jl unnest(df, col) = flatten( select(df, Not(col), col => ByRow(Tables.columntable) => AsTable), names(df, Not(col)) ) ``` This...
Demonstrate how to aggregate over grouped array-like elements. (#3424) ```julia julia> df = DataFrame(a=[1, 1, 2, 2], b=[[1, 2], [2, 3], [3, 4], [4, 5]]) 4×2 DataFrame Row │ a...
This is a small feature that might save me some typing (that is, feel free to ignore) `stack` is a nice function. But I'm finding that frequently, I want to...
The case is for building tests around DataFrames.jl (At least) two rather old discourse issue have been opened around this - [mentioning isapprox with recent comments (because of myself)](https://discourse.julialang.org/t/is-there-a-package-to-compare-if-two-dataframes-are-the-same/44381) -...
This pull request sets the compat entry for the `Statistics` package to `1`. This keeps the compat entries for earlier versions. Note: I have not tested your package with this...
[Here](https://discourse.julialang.org/t/trouble-translating-some-dplyr-code-to-dataframesmeta/107555/3) is a use-case where DataFrames.jl compares unfavorably to dplyr. Basically, the best way to do inter-dependent column transformations is to use `AsTable` and return a `NamedTuple`. However in OP's...
Fixes https://github.com/JuliaData/DataFrames.jl/issues/3390 @nalimilan - I just did the initial implementation. Let us first decide if we like the functionality and if yes, I will document and test it.