Multi class classification Not able to tokenize using map on custom datset

i’m trying to load the data using the pandas dataframe and loaded bert based tokenizer

I am trying to tokenize using below code.

def tokenize_function(examples):
return tokenizer(examples[“text”], padding=“max_length”, truncation=True), batched=True)

and it throws error saying dataframe has no attribute map.

How can map those using pandas dataframe?