By np I hope you mean numpy which is not a part of CPython and also pivot_table is part of pandas and could get a better resolution reporting on their repo.
Prakhar, for future reference, please don't submit unnecessary screenshots to report bugs. Screen shots are hostile to the blind or visually impaired, who may be reading this with a screen-reader, and they make it impossible for us to copy your code to run it. In future, please copy and paste the sample code and exception, as text, not as a picture.