JuliaData / DataFrames.jl

In-memory tabular data in Julia
https://dataframes.juliadata.org/stable/
Other
1.74k stars 370 forks source link

inexact error within() #315

Closed swadey closed 9 years ago

swadey commented 11 years ago

There seems to be a type error with ./

julia> mpg = data("ggplot2", "mpg")
julia> total = sum(mpg["cyl"])
1378
julia> within(mpg, :(xxx = cyl ./ $total))
ERROR: InexactError()
 in ./ at /Users/swade/.julia/DataFrames/src/operators.jl:686
 in anonymous at /Users/swade/.julia/DataFrames/src/dataframe.jl:1389
 in within! at /Users/swade/.julia/DataFrames/src/dataframe.jl:1392
 in within at /Users/swade/.julia/DataFrames/src/dataframe.jl:1395
ViralBShah commented 11 years ago

Same as #306. The error is happening in the division.

garborg commented 9 years ago

within no longer exist.