[Python][Docs] Revise Python Documentation #46601
Description
Describe the enhancement requested
This is the umbrella ticket for ongoing efforts to improve and revise the PyArrow Python User Guide and API reference documentation.
Many sections of the guide need refreshing, especially based on what users frequently search for and the kinds of issues commonly reported. We’ve already started prioritizing topics through research using Matomo web analytics and GitHub issues. In the future, insights from Kapa AI will also be incorporated. Comments on the priorities are welcome!
We’ll open sub-issues for specific tasks as we go. Everyone is welcome to contribute—whether you're experienced or just getting started, your help in making the PyArrow docs better is appreciated! ❤️
Suggested Focus Areas (in order of priority):
- Parquet module
- Dataset module
Table,RecordBatch,Schemaand data types- Getting Started
- Pandas integration
- IPC
Note: The User Guide is the main focus of this revision effort, but improving the API reference documentation is also important. Analytics show it receives a significant amount of traffic, so we'll consider enhancements there as well.
Existing Documentation Issues
- Datasets
- [Python][Docs] Improve the Python user guide on the CUDA integration (
pyarrow.cuda) #41666 - [Python][Azure][Docs] Add documentation about AzureFilesystem #41496
- [Docs][Python] Add all tensor classes documentation #43352
Connected
- [Doc] Use sphinx-remove-toctrees to generated docstring pages from navigation (and reduce build time) #30021
- [Doc][Python] The use of IPython directive or doctest code blocks in the python user guide #28859
Extras
- make sure pandas examples are used only in places, where pyarrow integration with pandas is explained.
Component(s)
Documentation, Python
Activity
AlenkaF commentedon May 27, 2025
cc @thisisnic @raulcd @rok @ianmcook @pitrou for initial thoughts =)
pitrou commentedon May 28, 2025
That seems like a useful approach. I'm waiting for more details on the proposed changes :)
thisisnic commentedon Oct 2, 2025
Here's the link to the analysis of questions asked to the kapa.ai bot over 3 months - https://thisisnic.github.io/arrow-kapa-ai-analysis/
dangotbanned commentedon Nov 9, 2025
I think there's a bug with how entries for the API Reference are currently being collected.
From the most recent few versions, I've noticed the following are missing:
pyarrowarangepyarrow.computebottom_k_unstableinverse_permutationrandomrank_normalrank_quantilescattertop_k_unstablewinsorizeThe most recent addition that is present seems to be
I'm assuming this wasn't intentional, since they all do have docstrings:
AlenkaF commentedon Nov 10, 2025
This is not intentional, no. Unfortunately the kernels have to be listed specifically in this list:
https://github.com/apache/arrow/blob/main/docs/source/python/api/compute.rst
to appear in the API docs (other sections also). Similar issue has been opened here:
#45322
but for other kernels. We should add all that are listed here also. Would you be interested in making a contribution for this @dangotbanned? It would need a separate issue though.
dangotbanned commentedon Nov 11, 2025
Thanks @AlenkaF
I am interested, but realistically I don't think I'd get back to this for a while, sadly.
If anyone else wants to take it, feel free 🙌
Now that I can commit to 😄
GH-47686: [Docs][Python] Split the Python Parquet docs into separate …