Hi, I’m trying to practise using Query for data cleaning and saw this simple example in the documentation of the library.
using Query, DataFrames
df = DataFrame(a=[1,missing,3], b=[4,5,6])
q = df |> @replacena(0) |> DataFrame
println(q)
So decided to try and replicate it myself importing Queryverse instead, but I’m getting this error:
ERROR: UndefVarError: @replacena not defined
Stacktrace:
[1] top-level scope
[2] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1088
Thought maybe Queryverse wasn’t importing Query well so tried importing Query with
using Query
And then tried running the code again, but got the same error.
Finally I have tried using other na macros from Query (“dropna”, “dissallowna”) and still got the same error message of them not being defined.
Also when looking them up with ? in the julia repl, they don’t exist.
help?> @replacena
No documentation found.Binding @replacena does not exist
While other Query macros such as “select” do exist.
help?> @select
@select(args…)Select columns from a table using commands in order.
Is anyone else having this same problem?