df = {'cell_name': ['#_marS_8_all_0M#_[BC]','#_marS_8_all_0M#_[BC]','Контрольная группа [ВС]','#_marS_8_all_0M#_[BC]','#_marS_8_all_0M#_[Баннер]']}
df = pd.DataFrame(df, columns= ['cell_name'])
df.head()
df = {'cell_name':
['#_marS_8_all_0M#_[BC]',
'#_marS_8_all_0M#_[BC]',
'Контрольная группа [ВС]',
'#_marS_8_all_0M#_[BC]',
'#_marS_8_all_0M#_[Баннер]']}
print(['#'.join(d.split('#')[:2]) for d in df['cell_name']])