Skip to content

Commit

Permalink
Fix arrow links in docs (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjsi authored Oct 3, 2024
1 parent 8aca345 commit 901b769
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
8 changes: 4 additions & 4 deletions docs/source/base-tables.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,9 @@ Record表示表的一行记录,我们在 Table 对象上调用 new_record 就
>>> for record in o.read_table('test_table', partition='pt=test,pt2=test2'):
>>> # 处理一条记录
从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ <Arrow>`_ 格式读写数据,该格式可以以更高\
从 0.11.2 开始,PyODPS 支持使用 `Arrow <https://arrow.apache.org/>`_ 格式读写数据,该格式可以以更高\
效率与 pandas 等格式互相转换。安装 pyarrow 后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按
`https://arrow.apache.org/docs/python/data.html#record-batches <Arrow RecordBatch>`_
`Arrow RecordBatch <https://arrow.apache.org/docs/python/data.html#record-batches>`_
格式读取表内容。

.. code-block:: python
Expand Down Expand Up @@ -440,9 +440,9 @@ open_writer 创建的 Writer 对象通过 multiprocessing 标准库传递到需
# 等待子进程中的执行完成
[f.get() for f in futures]
从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ <Arrow>`_ 格式读写数据,该格式可以以更高\
从 0.11.2 开始,PyODPS 支持使用 `Arrow <https://arrow.apache.org/>`_ 格式读写数据,该格式可以以更高\
效率与 pandas 等格式互相转换。安装 pyarrow 后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按
`https://arrow.apache.org/docs/python/data.html#record-batches <Arrow RecordBatch>`_
`Arrow RecordBatch <https://arrow.apache.org/docs/python/data.html#record-batches>`_
格式写入表内容。PyODPS 也支持直接写入 pandas DataFrame,支持自动转换为 Arrow RecordBatch。

.. code-block:: python
Expand Down
51 changes: 25 additions & 26 deletions docs/source/locale/en/LC_MESSAGES/base-tables.po
Original file line number Diff line number Diff line change
Expand Up @@ -466,19 +466,18 @@ msgstr ""

#: ../../source/base-tables.rst:254
msgid ""
"从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ <Arrow>`_ 格式"
"从 0.11.2 开始,PyODPS 支持使用 `Arrow <https://arrow.apache.org/>`_ 格式"
"读写数据,该格式可以以更高\\ 效率与 pandas 等格式互相转换。安装 pyarrow "
"后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按 `https://"
"arrow.apache.org/docs/python/data.html#record-batches <Arrow RecordBatch>"
"`_ 格式读取表内容。"
msgstr ""
"Since 0.11.2, PyODPS supports reading and writing table data with "
"`https://arrow.apache.org/ <Arrow>`_ format, which can be converted from "
"and to pandas or other formats with high efficiency. After installing "
"pyarrow, you can read data from tables with "
"`https://arrow.apache.org/docs/python/data.html#record-batches <Arrow "
"RecordBatch>`_ format by adding ``arrow=True`` argument when calling "
"``open_reader`` method."
"后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按 `Arrow "
"RecordBatch <https://arrow.apache.org/docs/python/data.html#record-"
"batches>`_ 格式读取表内容。"
msgstr ""
"Since 0.11.2, PyODPS supports reading and writing table data with `Arrow "
"<https://arrow.apache.org/>`_ format, which can be converted from and to "
"pandas or other formats with high efficiency. After installing pyarrow, "
"you can read data from tables with `Arrow RecordBatch "
"<https://arrow.apache.org/docs/python/data.html#record-batches>`_ format "
"by adding ``arrow=True`` argument when calling ``open_reader`` method."

#: ../../source/base-tables.rst:259
msgid ""
Expand Down Expand Up @@ -892,21 +891,21 @@ msgstr ""

#: ../../source/base-tables.rst:443
msgid ""
"从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ <Arrow>`_ 格式"
"从 0.11.2 开始,PyODPS 支持使用 `Arrow <https://arrow.apache.org/>`_ 格式"
"读写数据,该格式可以以更高\\ 效率与 pandas 等格式互相转换。安装 pyarrow "
"后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按 `https://"
"arrow.apache.org/docs/python/data.html#record-batches <Arrow RecordBatch>"
"`_ 格式写入表内容。PyODPS 也支持直接写入 pandas DataFrame,支持自动转换为"
" Arrow RecordBatch。"
msgstr ""
"Since 0.11.2, PyODPS supports reading and writing table data with "
"`https://arrow.apache.org/ <Arrow>`_ format, which can be converted from "
"and to pandas or other formats with high efficiency. After installing "
"pyarrow, you can write data into tables with "
"`https://arrow.apache.org/docs/python/data.html#record-batches <Arrow "
"RecordBatch>`_ format by adding ``arrow=True`` argument when calling "
"``open_writer`` method. PyODPS also supports writing tables with pandas "
"DataFrames, which will be converted into Arrow RecordBatch directly."
"后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按 `Arrow "
"RecordBatch <https://arrow.apache.org/docs/python/data.html#record-"
"batches>`_ 格式写入表内容。PyODPS 也支持直接写入 pandas DataFrame,支持"
"自动转换为 Arrow RecordBatch。"
msgstr ""
"Since 0.11.2, PyODPS supports reading and writing table data with `Arrow "
"<https://arrow.apache.org/>`_ format, which can be converted from and to "
"pandas or other formats with high efficiency. After installing pyarrow, "
"you can write data into tables with `Arrow RecordBatch "
"<https://arrow.apache.org/docs/python/data.html#record-batches>`_ format "
"by adding ``arrow=True`` argument when calling ``open_writer`` method. "
"PyODPS also supports writing tables with pandas DataFrames, which will be"
" converted into Arrow RecordBatch directly."

#: ../../source/base-tables.rst:448
msgid ""
Expand Down

0 comments on commit 901b769

Please sign in to comment.