I want to add a Column_4
when Column_4
does not exists in the dataframe. How do I search for it, and if no match create the new column?
Column_1 Column_2 Clolumn_3
1 4 7
2 5 8
3 6 9
Since Column_4
is not available, add Column_4
with value of 10
Column_1 Column_2 Clolumn_3 Column_4
1 4 7 10
2 5 8 10
3 6 9 10