MCPcopy Create free account
hub / github.com/apache/arrow / run

Method run

docs/source/conf.py:636–661  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

634 }
635
636 def run(self):
637 from docutils.statemachine import ViewList
638 from docutils import nodes
639 import pyarrow.compute as pc
640
641 result = ViewList()
642 function_kind = self.options.get('kind', None)
643
644 result.append(".. csv-table::", "<computefuncs>")
645 result.append(" :widths: 20, 60, 20", "<computefuncs>")
646 result.append(" ", "<computefuncs>")
647 for fname in pc.list_functions():
648 func = pc.get_function(fname)
649 option_class = ""
650 if func._doc.options_class:
651 option_class = f":class:`{func._doc.options_class}`"
652 if not function_kind or func.kind == function_kind:
653 result.append(
654 f' "{fname}", "{func._doc.summary}", "{option_class}"',
655 "<computefuncs>"
656 )
657
658 node = nodes.section()
659 node.document = self.state.document
660 self.state.nested_parse(result, 0, node)
661 return node.children

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected