DataFrameAppender

class DataFrameAppender(df: DataFrame) extends Dynamic
trait Dynamic
class Object
trait Matchable
class Any

Value members

Concrete methods

@unused
def applyDynamic(method: String)(args: (String, Series[_]) | Series[_]*): DataFrame

Appends (or replaces) multiple columns. Use df.cols(...) for calling this method.

Appends (or replaces) multiple columns. Use df.cols(...) for calling this method.

Returns

Appender object which appends Series on the right side.

Throws
MergeIndexException

If indices are not compatible.

See also
Since

0.1.0

Note
  • Existing columns with the same name are replaced by the rightmost column.
  • The index of the Series must be included in the left DataFrame.
  • Series might be copied if indices are not equivalent.
  • The index of the DataFrame is not altered.
  • For one column, this operation is equivalent to the | operator.
Example
 df.cols("price" -> Series(10.0, 20.0), "quantity" -> Series(5, 2))
 df.cols(Series(10.0, 20.0) as "price", Series(5, 2) as "quantity")
 df.cols(Series("price")(10.0, 20.0), Series("quantity")(5, 2))
@unused
def applyDynamicNamed(method: String)(kwargs: (String, Series[_])*): DataFrame

Appends (or replaces) multiple columns. Use df.cols(...) for calling this method.

Appends (or replaces) multiple columns. Use df.cols(...) for calling this method.

Returns

Appender object which appends Series on the right side.

Throws
MergeIndexException

If indices are not compatible.

See also
Since

0.1.0

Note
  • Existing columns with the same name are replaced by the rightmost column.
  • The index of the Series must be included in the left DataFrame.
  • Series might be copied if indices are not equivalent.
  • The index of the DataFrame is not altered.
  • For one column, this operation is equivalent to the | operator.
Example
 df.cols(price = Series(10.0, 20.0), quantity = Series(5, 2))