Featurize the formula to molecular weight?

If the table has a series of chemical formulas, how can I feature the formulas to molecular weight?