Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated syntax in /programming/computing/dataframes.md #97

Open
DilumAluthge opened this issue Jul 24, 2020 · 0 comments
Open

Deprecated syntax in /programming/computing/dataframes.md #97

DilumAluthge opened this issue Jul 24, 2020 · 0 comments
Assignees
Labels
bug Something isn't working content: computing

Comments

@DilumAluthge
Copy link
Member

DilumAluthge commented Jul 24, 2020

The relevant code is on lines 286-289 of https://github.com/bcbi/bidss/blob/master/programming/computing/dataframes.md

```julia:./dataframes.jl
# get counts of males and females in the dataframe
println(by(df, :gender, N = :gender => length))
```

Here is the deprecation warning: (you may need to scroll right to read the full warning)

┌ Warning: `by(d::AbstractDataFrame, cols::Any; sort::Bool = false, skipmissing::Bool = false, f...)` is deprecated, use `combine(groupby(d, cols, sort = sort, skipmissing = skipmissing), [if in_col isa ColumnIndex
│             in_col
│         else
│             AsTable(in_col)
│         end => (fun => out_col) for (out_col, (in_col, fun)) = f]...)` instead.
│   caller = ip:0x0
└ @ Core :-1 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working content: computing
Projects
None yet
Development

No branches or pull requests

2 participants