is this custom data loader for BERT correct, I am getting an error for the datatype with this code (bold line)

def init(self,  path, use_tokenizer, max_sequence_len=None):
df = pd.read_csv(path)


texts = []
labels = []
for index, row in df.iterrows():
    source = row['source']
    pubDate = row['pubDate']
       author = row['author']
    title = row['title']
   content = row['content']
     **text.append((source, pubDate,author,title,content))**
    label_id=row['label']
    # Save encode labels.
    labels.append(label_id)


the error is
image1741×377 45.1 KB