This is an automated email from the ASF dual-hosted git repository.

ianmcook pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-experiments.git


The following commit(s) were added to refs/heads/main by this push:
     new 9e2989c  http: Improve curl example readme (#39)
9e2989c is described below

commit 9e2989c11fff468db33319f5519c1677a7b14662
Author: Ian Cook <[email protected]>
AuthorDate: Thu Oct 10 13:04:00 2024 -0400

    http: Improve curl example readme (#39)
    
    * Improve README
---
 http/get_simple/curl/client/README.md | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/http/get_simple/curl/client/README.md 
b/http/get_simple/curl/client/README.md
index 50c62ed..943bb19 100644
--- a/http/get_simple/curl/client/README.md
+++ b/http/get_simple/curl/client/README.md
@@ -37,15 +37,15 @@ To read the resulting file `output.arrows` and retrieve the 
schema and record ba
   import pyarrow as pa
 
   with open("output.arrows", "rb") as f:
-      reader = pa.ipc.open_stream(pa.BufferReader(f.read()))
-
-  schema = reader.schema
-
-  batch = reader.read_next_batch()
-  # ...
-
-  # or alternatively:
-  batches = [b for b in reader]
+      reader = pa.ipc.open_stream(f)
+      
+      schema = reader.schema
+      
+      batch = reader.read_next_batch()
+      # ...
+      
+      # or alternatively:
+      batches = [b for b in reader]
   ```
 </details>
 

Reply via email to