DataFrameAppender
trait Dynamic
class Object
trait Matchable
class Any
Value members
Concrete methods
@unused
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
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))