Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds new
Math
method todataframe.DataFrame
capable of computing n-ary arithmetic functions against entire selected columns, storing the the result in a new column (or replacing an existing one). Supportsint
andfloat64
types. Supports operator specification by string (e.g., "+", "/", etc.) or unary, binary, or trinaryint
orfloat64
function (e.g., for supplying afloat64
function from Go'smath
module). For example:See tests for further examples.
This PR also adds new
FindElem
method todataframe.DataFrame
which lets a user pull a particularseries.Element
out of aDataFrame
by specifying a column and value to select a row (assumed to be unique), and another column to find a particular value within that row. For example, the following line will search through the "Metric" column of each row for a value "envoy_cluster_upstream_rq_active", and then it will return theseries.Element
from that row corresponding to the "Value" column:This PR also introduces go modules support. Until merged into
github.com/go-gota/gota
, you will need to add areplace
directive to any dependent code with the following: