haifengl / smile

Statistical Machine Intelligence & Learning Engine
https://haifengl.github.io
Other
6.02k stars 1.13k forks source link

How do i combine two column into one with delimiter? #689

Closed imvishalpatel closed 3 years ago

imvishalpatel commented 3 years ago

i have created a DataFram from csv file. now i want to select 3 columns from this DataFrame and after selecting, i want to combine 3 columns into one column and store it into csv file. I searched in the documentation but could not find any solution. How do i achieve this?

haifengl commented 3 years ago

To combine 3 columns (I guess that they are strings), you can use the stream() API with a custom function. There is no builtin function for this.