pyarrow.acero.ProjectNodeOptions#
- classpyarrow.acero.ProjectNodeOptions(expressions,names=None)#
Bases:
_ProjectNodeOptionsMake a node which executes expressions on input batches,producing batches of the same length with new columns.
This is the option class for the “project” node factory.
The “project” operation rearranges, deletes, transforms, andcreates columns. Each output column is computed by evaluatingan expression against the source record batch. These must bescalar expressions (expressions consisting of scalar literals,field references and scalar functions, i.e. elementwise functionsthat return one value for each input row independent of the valueof all other rows).
- Parameters:
- expressions
listofpyarrow.compute.Expression List of expressions to evaluate against the source batch. This mustbe scalar expressions.
- names
listofstr, optional List of names for each of the output columns (same length asexpressions). Ifnames is not provided, the stringrepresentations of exprs will be used.
- expressions
- __init__(self,expressions,names=None)#
Methods
__init__(self, expressions[, names])

