I need help on how to deal with the recursion depth error. I am getting this error when I try to replace NaN values with the median (due to outliers in a single column), using the below mentioned code,
app_data['AMT_REQ_CREDIT_BUREAU_YEAR'].fillna(app_data['AMT_REQ_CREDIT_BUREAU_YEAR'].median, inplace = True)
- The shape of the data is (307511, 18)
- The missing values in the column AMT_REQ_CREDIT_BUREAU_YEAR are 41519
How do I fix the error I'm getting? RecursionError: maximum recursion depth exceeded