From 901b769e2c3b8f34105724fe7f355e4dfa5017b5 Mon Sep 17 00:00:00 2001 From: Wenjun Si Date: Thu, 3 Oct 2024 10:21:16 +0800 Subject: [PATCH] Fix arrow links in docs (#252) --- docs/source/base-tables.rst | 8 +-- .../locale/en/LC_MESSAGES/base-tables.po | 51 +++++++++---------- 2 files changed, 29 insertions(+), 30 deletions(-) diff --git a/docs/source/base-tables.rst b/docs/source/base-tables.rst index 60fd09c..b817689 100644 --- a/docs/source/base-tables.rst +++ b/docs/source/base-tables.rst @@ -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/ `_ 格式读写数据,该格式可以以更高\ +从 0.11.2 开始,PyODPS 支持使用 `Arrow `_ 格式读写数据,该格式可以以更高\ 效率与 pandas 等格式互相转换。安装 pyarrow 后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按 -`https://arrow.apache.org/docs/python/data.html#record-batches `_ +`Arrow RecordBatch `_ 格式读取表内容。 .. code-block:: python @@ -440,9 +440,9 @@ open_writer 创建的 Writer 对象通过 multiprocessing 标准库传递到需 # 等待子进程中的执行完成 [f.get() for f in futures] -从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ `_ 格式读写数据,该格式可以以更高\ +从 0.11.2 开始,PyODPS 支持使用 `Arrow `_ 格式读写数据,该格式可以以更高\ 效率与 pandas 等格式互相转换。安装 pyarrow 后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按 -`https://arrow.apache.org/docs/python/data.html#record-batches `_ +`Arrow RecordBatch `_ 格式写入表内容。PyODPS 也支持直接写入 pandas DataFrame,支持自动转换为 Arrow RecordBatch。 .. code-block:: python diff --git a/docs/source/locale/en/LC_MESSAGES/base-tables.po b/docs/source/locale/en/LC_MESSAGES/base-tables.po index 2e553c0..2c6ca67 100644 --- a/docs/source/locale/en/LC_MESSAGES/base-tables.po +++ b/docs/source/locale/en/LC_MESSAGES/base-tables.po @@ -466,19 +466,18 @@ msgstr "" #: ../../source/base-tables.rst:254 msgid "" -"从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ `_ 格式" +"从 0.11.2 开始,PyODPS 支持使用 `Arrow `_ 格式" "读写数据,该格式可以以更高\\ 效率与 pandas 等格式互相转换。安装 pyarrow " -"后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按 `https://" -"arrow.apache.org/docs/python/data.html#record-batches " -"`_ 格式读取表内容。" -msgstr "" -"Since 0.11.2, PyODPS supports reading and writing table data with " -"`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 " -"`https://arrow.apache.org/docs/python/data.html#record-batches `_ format by adding ``arrow=True`` argument when calling " -"``open_reader`` method." +"后,在调用 ``open_reader`` 时增加 ``arrow=True`` 参数,即可按 `Arrow " +"RecordBatch `_ 格式读取表内容。" +msgstr "" +"Since 0.11.2, PyODPS supports reading and writing table data with `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 `Arrow RecordBatch " +"`_ format " +"by adding ``arrow=True`` argument when calling ``open_reader`` method." #: ../../source/base-tables.rst:259 msgid "" @@ -892,21 +891,21 @@ msgstr "" #: ../../source/base-tables.rst:443 msgid "" -"从 0.11.2 开始,PyODPS 支持使用 `https://arrow.apache.org/ `_ 格式" +"从 0.11.2 开始,PyODPS 支持使用 `Arrow `_ 格式" "读写数据,该格式可以以更高\\ 效率与 pandas 等格式互相转换。安装 pyarrow " -"后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按 `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 " -"`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 " -"`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." +"后,在调用 ``open_writer`` 时增加 ``arrow=True`` 参数,即可按 `Arrow " +"RecordBatch `_ 格式写入表内容。PyODPS 也支持直接写入 pandas DataFrame,支持" +"自动转换为 Arrow RecordBatch。" +msgstr "" +"Since 0.11.2, PyODPS supports reading and writing table data with `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 `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." #: ../../source/base-tables.rst:448 msgid ""