DOC: Fixing more doc warnings
Follow up of #24430 and #24431. Addressing more doc warnings.

Also, forcing the docs Python code to be executed with the current directory `doc/`, so no matter where the actual current directory, operations like `pd.read_csv('data/baseball.csv')` always work.