UNPKG

@jrc03c/js-math-tools

Version:
12 lines (9 loc) 255 B
import { copy } from "../copy.mjs" function dfCopy(DataFrame, df) { if (df.isEmpty) return new DataFrame() const out = new DataFrame(copy(df.values)) out.columns = df.columns.slice() out.index = df.index.slice() return out } export { dfCopy }