I have two cols in a DataFrame col1 and col2 and I need to generate result column.
Every FD has few correlated MS that are supposed to be populated in the result column as shown in the fig

[![enter image description here](https://i.stack.imgur.com/EUZhS.png)](https://i.stack.imgur.com/EUZhS.png)

```
dict_obj = {'col1': ['FD', 'MS', 'MS', 'FD', 'MS', 'MS', 'MS', 'FD', 'MS', 'MS'], 
            'col2': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']}
df = pd.DataFrame(dict_obj)

```