-
Notifications
You must be signed in to change notification settings - Fork 370
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
Warnings (ambiguous getindex) #765
Comments
This warning is probably causing a serious error: df = DataFrame(x=[1,2,3],y=[4.,5.,6.])
df[:x,:y]
|
The df[ [:x, :y] ] The extra brackets pass a vector of symbols to getindex. |
Also, those method ambiguities are in the DataArrays package. |
@tshort, I was able to use What is the correct way of querying these ranges in a dataframe now? |
It works for me: julia> d = DataFrame(a = rand(1:10,20), x = rand(20), y = rand(20));
julia> d[1:10, [:x,:y]]
10x2 DataFrame
| Row | x | y |
|-----|-----------|-----------|
| 1 | 0.649857 | 0.557144 |
| 2 | 0.57126 | 0.361365 |
| 3 | 0.676964 | 0.91767 |
| 4 | 0.0734608 | 0.0769796 |
| 5 | 0.676981 | 0.47995 |
| 6 | 0.688151 | 0.0860809 |
| 7 | 0.844548 | 0.166854 |
| 8 | 0.878062 | 0.457129 |
| 9 | 0.719522 | 0.0969891 |
| 10 | 0.927068 | 0.5675 | |
This is the error I get:
and the version I'm using:
|
Is that with the same example I just gave? If not, please provide a On Mon, Feb 9, 2015 at 2:26 PM, Júlio Hoffimann Mendes <
|
Yes, the same example.
|
Looks like a bug. I don't have your setup handy. I recommend closing this On Mon, Feb 9, 2015 at 2:34 PM, Júlio Hoffimann Mendes <
|
This is fallout from JuliaLang/julia#9098 in DataArrays. I'm working on it, but I may need @timholy's help. |
Should be fixed by JuliaLang/Compat.jl#42 |
Latest Julia:
using DataFrames
The text was updated successfully, but these errors were encountered: