I am new to pandas.
I want to add a new column to a pandas dataframe df
and assign "Start" to every odd row and "Stop" to every even row.
However, when I do df.iloc[1::2, :] = "Start"
, I am inserting a new row at every 2nd position with the "Start" string in every column.
I know that in this case, pandas doesn't know in which column to put the "Start"-string.
However, I couldn't figure out the correct syntax.