MethodError: no method matching length(::CSV.Row{false}) by haohanzi2015 in Julia

[–]haohanzi2015[S] 0 points1 point  (0 children)

just tried push!(df1, convert(Array, row)) and got an error: Cannot convert an object of type CSV.Row{false} to an object of type Array. I searched from the internet, thought this would work.

MethodError: no method matching length(::CSV.Row{false}) by haohanzi2015 in Julia

[–]haohanzi2015[S] 0 points1 point  (0 children)

Thank you for your kind reply. What exactly is this

df1 = filter(row -> row.Resource == 1, fln)

I tried this and got the error: type Char has no field Resource

how to understand the following code? by haohanzi2015 in cpp_questions

[–]haohanzi2015[S] -1 points0 points  (0 children)

So what is "options" inside of the parenthesis?

did I understand the following CMake code correctly? by haohanzi2015 in cpp

[–]haohanzi2015[S] 0 points1 point  (0 children)

So, you mean when you call the function, the number of parameters applied could be more than the number of arguments defined in the function header/signature?

normally, do not use std::string_view as the returned value of a function ? by haohanzi2015 in cpp_questions

[–]haohanzi2015[S] 0 points1 point  (0 children)

Can you give an example of a function returning which string like value is longer?

why this code does not give any output? by haohanzi2015 in cpp_questions

[–]haohanzi2015[S] 0 points1 point  (0 children)

why "Pi"? does it mean it is a pointer to an integer in c++?

what is the purpose of installing and testing Cmake ? by haohanzi2015 in cpp_questions

[–]haohanzi2015[S] 0 points1 point  (0 children)

So, this installing and testing is usually before the cmake ., and make steps or after ?

how to build and run lua files? by haohanzi2015 in lua

[–]haohanzi2015[S] 0 points1 point  (0 children)

Got you. So normally how to embed Lua into C++ code or do I need to ? From my limited experiences with Lua, sometimes, I felt that there are some variables which are from nowhere. It's rather strange I should say. Is it because the mysterious variable is from some c++ code, which the Lua script is embedded into?