I have the following information in a DataFrame in Python:
## x1 x2 x3 x4 x5 colum
##0 206 214 021 122 554 2
##1 226 234 123 456 789 4
##2 245 253 558 855 123 5
##3 265 272 000 111 222 4
##4 283 291 214 589 996 1
and I need to generate a new column depending on the value that contains the colum
column, as follows:
## x1 x2 x3 x4 x5 colum newColum
##0 206 214 021 122 554 2 214
##1 226 234 123 456 789 4 456
##2 245 253 558 855 123 5 123
##3 265 272 000 111 222 4 111
##4 283 291 214 589 996 1 283
I do not know if I'm clear on my application, I thank whoever can help me.