Reference
Apply the function
fto each element ofxand return an array.
Apply the function
fto each value ofdand return a dictionary with the same keys ofd.
Apply the function
fto each element ofxand bind all the columns into a dataframe.
The same as
apply2(x, y, f)but returns nothing.
Discard the elements
x_iof collectionxsuch thatp(x_i)is true.
Keep the elements
x_iof collectionxsuch thatp(x_i)is true.
Returns
trueifyis an element ofx.
Return a function which is the negation of
f.
flatten_dfr_json(dicts::Vector{<:Dict}, n::Int = 1)
Given a vector of dictionaries, flatten each of them and concatenate on a dataframe; remaining vectors and dictionaries are converted to a json string.
Check if a object has length greater than 0.
Keep the elements
x_iof collectionxsuch thatis_non_empty(x_i)istrue.
Discard the elements
x_iof collectionxsuch thatp(x_i)is true.
Apply the function
fto each element ofxand bind all the rows into a dataframe.
Modify
xapplyingfto each of its elements where the functionpistrue.
flatten_dfr(dicts::Vector{<:Dict}, n::Int = 1)
Given a vector of dictionaries, flatten each of them and concatenate on a dataframe.
Convert
xto a JSON string.
Keep the elements
x_iof collectionxsuch thatis_non_empty(x_i)istrue.
The same as
papply(x, f)but returns nothing.
Returns the index for the first element of
xwherepis true.
Do some
x_iinxsatisfiesp?
Apply the function
fto each key ofdand return a dictionary with the same values ofd.
Apply the function
fto each pair(i, x_i)foriin the index set ofx.
Apply the function
fto each pair(k, d[k])forkin the values-set ofd.
Apply the 2-variable function
fto each element pair(x_i, y_i)wherex_i(resp.y_i) is the i-th element ofx(resp.y).
The same as
Dict(k => f(d1[k], d2[k]) for k ∈ keys(d1) ∩ keys(d2)), that is: we applyfon(d1[k], d2[k])for everykcommon key betweend1andd2.
Modify
xapplyingfto each of its elements.
Check if a object has length 0.
Returns the first element of
xwherepis true.
The same as
apply(x, f)but returns nothing.
The same as
iapply(x, f)but returns nothing.
Keep the elements
x_iof collectionxsuch thatp(x_i)is true.
Do none
x_iinxsatisfiesp?
Returns
trueif the dictionarydhas keyk.
Transform a pair
keyandvalueinto a dictionary.
flatten_dict(key, value:: Dict{<:Any, <:Any})
Given a
keyand avaluewhich is a dictionary, concatenate thekeystring to every other key of the dictionaryvalue. A dictionary of dictionaries will become only a dictionary of values.
flatten_dict(dict::Dict{<:Any, <:Any}, n = 1)
Remove one layer of dictionaries of a dictionary.
possibly(f, otherwise = nothing)
Create a modified version of the function
fsuch that it returnsotherwisewhenf(x)throws an error.
Modify a copy of
xapplyingfto each of its elements.
Create the composite function of the
args....
Try to get the value
d[k], it it exists. Otherwise, returnv.
Apply the function
fto each element ofx. This is a generalization ofapply2.
Compose the function
fwith itselfntimes.
Do every
x_iinxsatisfiesp?
Modify a copy of
xapplyingfto each of its elements where the functionpistrue.