python/bugs.python.org

pandas turning into numpy on recursion with large numbers

Ferr00 opened this issue · 1 comments

def recursive(x):
    if len(x) == 1: return pd.Series(0)    
    return pd.Series(x.iloc[0]).append(recursive(x.iloc[1:]))

recursive(pd.Series(np.zeros(1000))) #all good
recursive(pd.Series(np.zeros(10000))) #AttributeError: 'numpy.ndarray' object has no attribute 'iloc'

This issue tracker is for issues related to bugs.python.org, which is the issue tracker for CPython.

Pandas and numpys are both third party libraries. If you think there is bug with pandas, please file it in pandas own issue tracker, not here.