Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDOC: use single back-ticks for variable, module, function, and class names #36006
Comments
In theory, this is correct (and consistent within the guide I think). It follows the numpydoc docstring guide: https://numpydoc.readthedocs.io/en/latest/format.html But of course that doesn't mean we need to follow it (how it gets rendered also depends on your sphinx configuration). |
Thanks, I wasn't aware of that. They make it quite clear which to use:
Pandas' docstrings seem to jump between the two, e.g. isin has both
and
So, perhaps this should be changed to encourage easy contributions to be more consistent about this in the docstrings? |
EDIT I've rewritten this issue after Joris' comment.
Pandas' docstrings are somewhat inconsistent in using single or double back-ticks, e.g. isin has both
and
In keeping with the numpydoc docstring guide, which reads
, it might be good update docstrings which don't follow this convention, as well as to mention this convention in the pandas docstring guide.