0

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?

YaN
  • 407
  • 1
  • 6

1 Answers1

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