This is one of list on my csv file.
Name Combined Score
NDUFAF7 (pp) TRMT10C 0.911
NDUFAF7 (pp) PPARGC1A 0.846
It is separate by the (pp), and now i would like to separate into two column.
df[['preferredName_A','preferredName_B']] = df['name'].str.split('\s+\(.*$', expand=True)
for the code above i will only receive the name infront and the name after (pp) is gone.
I try
df[['preferredName_A','preferredName_B']] =df['name'].str.split('(pp)', expand=True)
and i will receive the error