Hello, good day. I updated my environment to julia 1.5.3 and a lot of project I had stoped work.
This code do not works anymore. Someone knows why it stoped work?
setosa_df = iris[iris[:species] .== "setosa", :]
ERROR: LoadError: MethodError: no method matching getindex(::DataFrame, ::Symbol)
I don’t know the exact answer to your question, but this is probably related to a recent DataFrames update and not to the Julia update. What version of DataFrames are you using? The latest release was 0.22 and was breaking.
Yes this syntax has been deprecated for years. Use df[rows, :] instead. You can go back to 0.21 and enable deprecation warnings to help porting your code.
df.column
df."column"
df[:, :column]
df[:, "column"]
df[!, :column] # no copy version of df[:, :column]
df[!, "column"] # no copy version of df[:, "column"]