Data looks like this
LIQUID PARAFFIN(1.25 MG)+MAGNESIUM HYDROXIDE(300.0 MG)+SODIUM PICOSULFATE(3.33 MG)
I have tried doing it by replace but it replace from first one parentheses to last close parentheses.
df['composition_replaced']=df["composition"].str.replace(r"\(.*\).\","")
Actual result-LIQUID PARAFFIN
Expected Result-
LIQUID PARAFFIN+MAGNESIUM HYDROXIDE+SODIUM PICOSULFATE