So here is my code:
def assign(x): x=dataDct[\'{}\'.format(x)] x=x[x[\'_id\'].str.contains("784561B7F90F")] return(x)