You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2022/12/11 02:59:29 UTC
[orc] branch asf-site updated: ORC-1331: Improve PyArrow page
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 99a190908 ORC-1331: Improve PyArrow page
99a190908 is described below
commit 99a1909084af566a547790f14eb42688ba1e75bd
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Sat Dec 10 18:59:23 2022 -0800
ORC-1331: Improve PyArrow page
---
docs/pyarrow.html | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/pyarrow.html b/docs/pyarrow.html
index 6c563cbec..143f74984 100644
--- a/docs/pyarrow.html
+++ b/docs/pyarrow.html
@@ -920,28 +920,28 @@
<p><a href="https://arrow.apache.org">Apache Arrow</a> project’s <a href="https://pypi.org/project/pyarrow/">PyArrow</a> is the recommended package.</p>
-<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pip3 install pyarrow==7.0.0
+<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>pip3 install pyarrow==10.0.1
pip3 install pandas
</code></pre></div></div>
<h2 id="how-to-write-and-read-an-orc-file">How to write and read an ORC file</h2>
-<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>In [1]: import pandas as pd
+<div class="highlighter-rouge"><div class="highlight"><pre class="highlight"><code>In [1]: import pyarrow as pa
-In [2]: import pyarrow as pa
+In [2]: from pyarrow import orc
-In [3]: from pyarrow import orc
+In [3]: orc.write_table(pa.table({"col1": [1, 2, 3]}), "test.orc", compression="zstd")
-In [4]: orc.write_table(pa.table({"col1": [1, 2, 3]}), "test.orc")
-
-In [5]: orc.read_table("test.orc").to_pandas()
-Out[5]:
+In [4]: orc.read_table("test.orc").to_pandas()
+Out[4]:
col1
0 1
1 2
2 3
</code></pre></div></div>
+<p><a href="https://arrow.apache.org/docs/python/orc.html">Apache Arrow ORC</a> page provides more information.</p>
+