Reference
Apply the function
f
to each element ofx
and return an array.
Apply the function
f
to each value ofd
and return a dictionary with the same keys ofd
.
Apply the function
f
to each element ofx
and bind all the columns into a dataframe.
The same as
apply2(x, y, f)
but returns nothing.
Discard the elements
x_i
of collectionx
such thatp(x_i)
is true.
Keep the elements
x_i
of collectionx
such thatp(x_i)
is true.
Returns
true
ify
is 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_i
of collectionx
such thatis_non_empty(x_i)
istrue
.
Discard the elements
x_i
of collectionx
such thatp(x_i)
is true.
Apply the function
f
to each element ofx
and bind all the rows into a dataframe.
Modify
x
applyingf
to each of its elements where the functionp
istrue
.
flatten_dfr(dicts::Vector{<:Dict}, n::Int = 1)
Given a vector of dictionaries, flatten each of them and concatenate on a dataframe.
Convert
x
to a JSON string.
Keep the elements
x_i
of collectionx
such thatis_non_empty(x_i)
istrue
.
The same as
papply(x, f)
but returns nothing.
Returns the index for the first element of
x
wherep
is true.
Do some
x_i
inx
satisfiesp
?
Apply the function
f
to each key ofd
and return a dictionary with the same values ofd
.
Apply the function
f
to each pair(i, x_i)
fori
in the index set ofx
.
Apply the function
f
to each pair(k, d[k])
fork
in the values-set ofd
.
Apply the 2-variable function
f
to 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 applyf
on(d1[k], d2[k])
for everyk
common key betweend1
andd2
.
Modify
x
applyingf
to each of its elements.
Check if a object has length 0.
Returns the first element of
x
wherep
is true.
The same as
apply(x, f)
but returns nothing.
The same as
iapply(x, f)
but returns nothing.
Keep the elements
x_i
of collectionx
such thatp(x_i)
is true.
Do none
x_i
inx
satisfiesp
?
Returns
true
if the dictionaryd
has keyk
.
Transform a pair
key
andvalue
into a dictionary.
flatten_dict(key, value:: Dict{<:Any, <:Any})
Given a
key
and avalue
which is a dictionary, concatenate thekey
string 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
f
such that it returnsotherwise
whenf(x)
throws an error.
Modify a copy of
x
applyingf
to 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
f
to each element ofx
. This is a generalization ofapply2
.
Compose the function
f
with itselfn
times.
Do every
x_i
inx
satisfiesp
?
Modify a copy of
x
applyingf
to each of its elements where the functionp
istrue
.