I am trying to optimize apply() function that I using for calling a function which uses pandas dataframe as an argument. I am trying to call this using df_final = df.swifter.apply(function, axis=1).
Asked
Active
Viewed 3,268 times
3
-
`'swifter'` is not a column name in your frame – It_is_Chris Sep 21 '20 at 19:21
-
1Did you install and import swifter? Show us the code. – m02ph3u5 Sep 21 '20 at 19:34
-
I upgraded the pandas package that I was using, imported swifter and it worked. – Manali Haresh Damania Sep 23 '20 at 23:53
-
`import swifter`. This is what I missed which was causing this error. – Prakash Dahal Mar 04 '22 at 15:15