Using DataFrame operations to transform