import pandas as pd import numpy as np def add(x, y): df['col'].apply(lambda x: str(x) + "test!") return x + y