I got this error on my datasets:
157 assert np.array_equal(df.index.sort_values(), df.index), "Index is not sorted"
158 result = np.sign(df) * np.abs(df) ** p
--> 159 assert ((result.std() == 0) | (result.corrwith(df) >= 0.9)).all()
160 return result
AssertionError:
After some research I find the correlation is not match the assert

What should I do in this case ?
I got this error on my datasets:
157 assert np.array_equal(df.index.sort_values(), df.index), "Index is not sorted"
158 result = np.sign(df) * np.abs(df) ** p
--> 159 assert ((result.std() == 0) | (result.corrwith(df) >= 0.9)).all()
160 return result
AssertionError:
After some research I find the correlation is not match the assert

What should I do in this case ?