Week 10 Error - Create Mean Row

Getting Error while printing dataframe create mean row for each columns

RecursionError: maximum recursion depth exceeded

Hi @sourav.chowdhury, welcome to the forum. Please share your code and brief context regarding the task that you are trying to fulfill.

This is a case with recursion limit.
You can increase it using the following:

import sys
sys.getrecursionlimit()

check the recursion limit using the above snippet, and decide a larger limit than the existing one, and use the following to change it:

sys.setrecursionlimit(10000) #or any value other than 10000
1 Like