concat.js

import { curry, concat as _concat } from "ramda"

/**
 * Concatenate two dataframes.
 *
 * @func
 * @memberOf Z
 * @category Manipulation
 * @param {df} dataframe1 Zebras dataframe
 * @param {df} dataframe2 Zebras dataframe
 * @return {df} Zebras dataframe
 * @example
 *
 * const df1 = [{"label": "A", "value": 7}, {"label": "B", "value": 2}]
 * const df2 = [{"label": "C", "value": 17}, {"label": "D", "value": 2}]
 * Z.concat(df1, df2)
 * // [{"label": "A", "value": 7}, {"label": "B", "value": 2}, {"label": "C", "value": 17}, {"label": "D", "value": 2}]
 */
const concat = curry((df1, df2) => _concat(df1, df2))

export default concat