Use case: Lets say that I have a very large set of Pandas Series objects and I wish to apply the .drop_na()
method to all of them. However because they are so large I must use a function that will perform this with multiprocessing
, by accepting a list of objects and using each object in the list as the argument to a method (which is also passed as an object).
Given that the first, and implicit, argument to an object method is self.
Can I use a lambda, partial or other trickery to pass the .drop_na()
method and replace the self argument in .drop_na()
with a specific instance of a series? Is this possible in Python?