adding pandas implementation