I've noticed this happens sometimes, usually I switch to lambda, but was wondering what I am doing that is causing it:
AttributeError: 'functools.partial' object has no attribute '__module__'
Appears with:
def f(div, x):
total = 0
for row in x.iterrows():
if row["DEPARTMENT DESC"] in div:
total += row["TOTAL DIR COST"]
called using: functools.partial(f,room)
I would be very thankful for any help!