Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Looking to replace nan's in the inputs of CustomFactor

for xrange (0, self.inputs[i]): #or for xrange i in self.inputs[i]:
(pd.DataFrame(self.inputs[i]).fillna(method='ffill',inplace=True)).fillna(method='bfill',inplace=True)
"""then would like to update self.inputs[i] with the new data ? """