December 2018
Beginner to intermediate
500 pages
12h 10m
English
The @select query command, similar to its SQL SELECT counterpart, indicates which values are to be returned. Its general syntax is @select condition, where condition can be any Julia expression. Most commonly, we'll want to return the whole row and, in this case, we'll just pass var itself. For instance, let's create a new DataFrame to hold a shopping list:
julia> shopping_list = DataFrame(produce=["Apples", "Milk", "Bread"], qty=[5, 2, 1])
The output is as follows:

A cool (geeky!) and handy shopping list.
We can @select the whole row with the following:
@from p in shopping_list begin
@select p
end
It's not very useful, as this basically ...
Read now
Unlock full access