alex-s-gardner / binstatistics.jl Goto Github PK
View Code? Open in Web Editor NEWHighly flexible and efficient computation of n-dimensional binned statistic(s) for n-variable(s)
License: MIT License
Highly flexible and efficient computation of n-dimensional binned statistic(s) for n-variable(s)
License: MIT License
This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml
to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix
on this issue.
I'll open a PR within a few hours, please be patient!
When missing bins are requested a sort is applied to order bins... but if user inputs non sorted bins then output ordering will not match input ordering
This does not work because the name v
is duplicated in output... need to be able to pass makeunique=true
:
bs = BinStatistics.binstats(df, :v, 0.0:100.0:6000.0, :v);
ERROR: ArgumentError: Duplicate variable names: :c. Pass makeunique=true to make them unique using a suffix automatically.
Stacktrace:
[1] make_unique!(names::Vector{Symbol}, src::Vector{Symbol}; makeunique::Bool)
@ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/other/utils.jl:99
[2] make_unique!
@ ~/.julia/packages/DataFrames/58MUJ/src/other/utils.jl:77 [inlined]
[3] #make_unique#4
@ ~/.julia/packages/DataFrames/58MUJ/src/other/utils.jl:121 [inlined]
[4] make_unique
@ ~/.julia/packages/DataFrames/58MUJ/src/other/utils.jl:120 [inlined]
[5] #Index#7
@ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:27 [inlined]
[6] Index
@ ~/.julia/packages/DataFrames/58MUJ/src/other/index.jl:26 [inlined]
[7] manipulate(df::DataFrame, args::Vector{Int64}; copycols::Bool, keeprows::Bool, renamecols::Bool)
@ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/abstractdataframe/selection.jl:1825
[8] manipulate
@ ~/.julia/packages/DataFrames/58MUJ/src/abstractdataframe/selection.jl:1823 [inlined]
[9] select
@ ~/.julia/packages/DataFrames/58MUJ/src/abstractdataframe/selection.jl:1298 [inlined]
[10] binstats(df::DataFrame, axis_col::Symbol, axis_edges::StepRangeLen{…}, bin_col::Symbol; grp_function::Vector{…}, col_function::Vector{…}, missing_bins::Bool)
@ BinStatistics ~/.julia/packages/BinStatistics/w35YT/src/functions.jl:103
[11] binstats(df::DataFrame, axis_col::Symbol, axis_edges::StepRangeLen{…}, bin_col::Symbol)
@ BinStatistics ~/.julia/packages/BinStatistics/w35YT/src/functions.jl:73
[12] top-level scope
@ ~/Documents/GitHub/Altim/src/sampling_test.jl:1
```
@JuliaRegistrator register()
Update ReadMe
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.