kevingurney opened a new issue, #37473:
URL: https://github.com/apache/arrow/issues/37473

   ### Describe the enhancement requested
   
   Currently, `arrow.tabular.Schema` supports indexing by `Field` name. 
However, `arrow.tabular.RecordBatch` does not.
   
   The ability to index columns in a `RecordBatch` by `Field` name would be a 
helpful usability improvement.
   
   **Example**
   ```matlab
   >> t = array2table(rand(3))
   
   t =
   
     3×3 table
   
        Var1       Var2       Var3  
       _______    _______    _______
   
       0.96489    0.95717    0.14189
       0.15761    0.48538    0.42176
       0.97059    0.80028    0.91574
   
   >> rb = arrow.recordBatch(t)
   
   rb = 
   
   Var1:   [
       0.9648885351992765,
       0.15761308167754828,
       0.9705927817606157
     ]
   Var2:   [
       0.9571669482429456,
       0.4853756487228412,
       0.8002804688888001
     ]
   Var3:   [
       0.14188633862721534,
       0.421761282626275,
       0.9157355251890671
     ]
    
   >> rb.column("Var1")
   
   ans = 
   
   [
     0.9571669482429456,
     0.4853756487228412,
     0.8002804688888001
   ]
   ```
   
   ### Component(s)
   
   MATLAB


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to