I have a working code where I have used pandas.apply function but when trying to apply the same function using pandas.swifter.apply, the code throws an error. This looks very st