How to return a new table without changing the original one when I use tmpTB.replaceColumn!(args)?
Is there a parameter like inplace=False
in pandas?
Asked
Active
Viewed 13 times
0

YaN
- 407
- 1
- 6
1 Answers
0
In DolphinDB, all the functions with "!" will change the original object. The only function to replace columns is the replaceColumn!
function. You can assign the original table to a new table variable before modifying it. Or you can use the copy
function as follows:
tmpTB.copy().replaceColumn!(args)

jinwandalaohu
- 226
- 1
- 7