+--- -----+------------+-------------+
|master_id| product_id |products |
+---------+------------+-------------+
| 0 | 123 | home |
| 12 | 234 | office |
| 15 | 456 | home |
| 0 | 678 | office |
| 25 | 890 | home |
| 0 | 145 | office |
+---+-----------------+--------------+
I have this table(only a part of rows are displayed,more than 1000 rows), I want to write a logic , such that, whenever the
master_id = 0 , master_id = product_id
I moved It into pandas dataframe. now how do I write this logic