1. ## list
  2. df['channels'].explode().str.get_dummies().sum(level=0)
  3. ## string
  4. pd.get_dummies(right_df.set_index('pair').te_right.str.split(',', expand=True), prefix='', prefix_sep='')\
  5. .groupby(axis=1, level=0).sum()

Alternatives