How can I use getattr on a function? This is how I use it normally:
getattr
df = candlestick.inverted_hammer(d