DOC: Use correct pandas when building documentation
This manifested itself in #25419 - when trying to build documentation the version of pandas that gets inserted into the globals of this module may have inadvertently been picked up from another install on the system. This prioritizes the version of pandas dictated by command line args