I have a DataFrame df
which has 50
columns in it and it has 28800 rows. I want to add a new column col_new
which will have value 0
in every rows from 2880 to 5760
,12960 to 15840
and 23040 to 25920
. And all other rows will have value 1
.
How could I do that?