Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9465

[Python] Improve ergonomics of compute functions

    XMLWordPrintableJSON

Details

    Description

      Introspection of exported compute functions currently yield suboptimal output:

      >>> from pyarrow import compute as pc                                                                                                                                 
      >>> pc.list_flatten                                                                                                                                                   
      <function pyarrow.compute._simple_unary_function.<locals>.func(arg)>
      >>> ?pc.list_flatten                                                                                                                                                  
      Signature: pc.list_flatten(arg)
      Docstring: <no docstring>
      File:      ~/arrow/dev/python/pyarrow/compute.py
      Type:      function
      >>> help(pc.list_flatten)                                                                                                                                             
      Help on function func in module pyarrow.compute:
      
      func(arg)
      

      The function should ideally have:

      • the right global name
      • an appropriate signature
      • a docstring

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m