The pandas syntax in the code is not compatible with pandas>3.0, which would make the code faster.
Implementing some quick fixes to make it compatible (now discarded) seems to reveal instances in the code where divisions by 0 were silently ignored (under pandas = 2.3.3), which is potentially an issue. Fixing these makes the code not converge.
The pandas syntax in the code is not compatible with pandas>3.0, which would make the code faster.
Implementing some quick fixes to make it compatible (now discarded) seems to reveal instances in the code where divisions by 0 were silently ignored (under pandas = 2.3.3), which is potentially an issue. Fixing these makes the code not converge.