We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello I have a float column in my DataFrame and I can't use "*" to multiply 2 columns together. I can however use "+".
leg[:gi] DataArrays.DataArray{Float64,1}:
This fails.
leg = @Transform(leg, gi_sq = :gi * :gi) MethodError: * has no method matching *(::Array{Float64,1}, ::Array{Float64,1})
*
This works
leg = @Transform(leg, gi_sq = :gi + :gi)
The text was updated successfully, but these errors were encountered:
I'm not at a computer to double-check, but I think you want elementwise multiplication (.*) rather than *.
.*
Also, please quote your code that uses macros, otherwise the GitHub user named @transform will be bothered.
@transform
Sorry, something went wrong.
using Datasets iris = datasets("datasets", "iris") @transform(iris, sepal_length_sq = :SepalLength .* :SepalLength)
works fine. I suggest closing this issue.
No branches or pull requests
Hello I have a float column in my DataFrame and I can't use "*" to multiply 2 columns together. I can however use "+".
leg[:gi]
DataArrays.DataArray{Float64,1}:
This fails.
leg = @Transform(leg, gi_sq = :gi * :gi)
MethodError:
*
has no method matching *(::Array{Float64,1}, ::Array{Float64,1})This works
leg = @Transform(leg, gi_sq = :gi + :gi)
The text was updated successfully, but these errors were encountered: