Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
BUG: fillna maximum recursion depth exceeded in cmp #18159
Code Sample, a copy-pastable example if possible
import pandas as pd import numpy as np s = pd.Series([float('nan')]) t = s.fillna(2 ** 63) # RuntimeError: maximum recursion depth exceeded in cmp t = s.fillna(float(2 ** 63)) # works
Note that this bug only affects PY2, PY3 works just fine.