Open FunkMonkey opened 2 years ago
I am having the same problem. I am currently getting around this with:
const copy = new dfd.DataFrame(dfd.toJSON(original));
although it would of course be preferable if the copy function behaved as documented :)
Almost One year later and this issue has not been fixed. Thanks @nholmes3 for te workaround!!
Describe the bug DataFrame.copy() does not make a deep copy of the data, only a shallow copy!
The reason is the spread operation in copy(), which is used instead of a proper deep copy.
To Reproduce
Expected behavior In the example above, the second console log should log false.