Is it possible to conduct the same actions using Pandas instead?