code: def label_triplets_to_df(triplets):
      
  
      label_df = pd.DataFrame({'label_store':np.array([t[0] for t in triplets],
                                                      dtype='int'),
                               'symbol':[t[1] for t in triplets],
                               'description':[t[2] for t in triplets]})
  
      label_df.set_index(label_df['label_store'].values, inplace=True)
      label_df = label_df[list(ann_label_fields)]
  
      return label_df
docs: Get a pd dataframe from a tuple triplets
      used to define annotation labels.
  
      The triplets should come in the
      form: (label_store, symbol, description)