I am trying to optimize a function in PyPSA which after profiling takes the most time. But it is just working with Pandas\' platform in Python. And doesn\'t require a lot of bac