I have written a small python program to deal with orders I receive. But due to change in the reference value I used to merge my df on is changed.
Example:
The problem is, I used to merge Old PO numbers to new PO numbers so that I know a customer is returning. But recently I started receiving partial orders which are 3c456 instead of 3c456/4c345. It means my customer is renewing only one product now. My pd.merge code doesn't find the partial order anymore.
My code was
df = pd.merge(old_PO_file, New_PO_file, on =PO-number)
since the new PO is partial and could be the value before or after the slash. I would like to duplicate all the rows in PO-number column if there is a Slash(/) in that cell.
Please let me know if it is possible.
Thanks