Please find below a dataframe:
Logic: For every new entry, first I need to check time if it exists. If it exists, I want to add new column suppose 'vlan3' with some value at the same index ('time') row. If there is no such time present, a new row with another time needs to be added.
I have written a code trying to add multiple columns.
In this code, I am getting an error as below:
Please advise how to add multiple columns satisfying the above mentioned logic.


