Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORC-1114: Update Using with Python page with PyArrow 7.0.0 #1042

Merged
merged 1 commit into from
Feb 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions site/_docs/pyarrow.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@ permalink: /docs/pyarrow.html

## How to install

Apache Arrow project's PyArrow is the recommended package.

https://pypi.org/project/pyarrow/
[Apache Arrow](https://arrow.apache.org) project's [PyArrow](https://pypi.org/project/pyarrow/) is the recommended package.

```
pip3 install pyarrow
pip3 install pyarrow==7.0.0
pip3 install pandas
```

Expand All @@ -22,14 +20,12 @@ In [1]: import pandas as pd

In [2]: import pyarrow as pa

In [3]: import pyarrow.orc as orc
In [3]: from pyarrow import orc

In [4]: orc.write_table(pa.table({"col1": [1, 2, 3]}), "test.orc")

In [5]: t = orc.ORCFile("test.orc").read()

In [6]: t.to_pandas()
Out[6]:
In [5]: orc.read_table("test.orc").to_pandas()
Out[5]:
col1
0 1
1 2
Expand Down