Answer the question
In order to leave comments, you need to log in
How to create a new column using other columns with a priori content constraints?
There is a dataframe, in the first column the data can be both int and str.
Col1 Col2 Col3
автобус 4 100500
37 2 100500
57 3 100500
троллейбус 4 100500
Col1 Col2 Col3 Col4
автобус 4 100500 автобус
37 2 100500 NaN
57 3 100500 NaN
троллейбус 4 100500 троллейбус
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question