According to the docs, a cleaningFun is a function that takes a DataFrame of prices as first input and then applies some cleaning function to return the cleaned DataFrame. However, the source code shows that the cleaning function is implemented as a method belonging to the DataFrame class (see screenshot). As a result, passing a cleaning function to data features where the function is defined as:
</p><p>def cleanFunc(pxs):</p><p> return pxs.dropna(how='all')</p><p>
… throws an error. Has anyone encountered this and if so, are there any solutions to this that don’t require using PandasObject?