Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions ci/conda_env_sphinx.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ pydata-sphinx-theme
sphinx-design
sphinx>=4.2
sphinx-copybutton
# Requirement for doctest-cython
pytest-cython
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1055,12 +1055,14 @@ services:
LANG: "C.UTF-8"
BUILD_DOCS_CPP: "ON"
BUILD_DOCS_PYTHON: "ON"
PYTEST_ARGS: "--doctest-modules"
volumes: *conda-volumes
command:
["/arrow/ci/scripts/cpp_build.sh /arrow /build &&
/arrow/ci/scripts/python_build.sh /arrow /build &&
pip install -e /arrow/dev/archery[numpydoc] &&
archery numpydoc --allow-rule PR01,PR10"]
archery numpydoc --allow-rule PR01,PR10 &&
/arrow/ci/scripts/python_test.sh /arrow"]

conda-python-dask:
# Possible $DASK parameters:
Expand Down
7 changes: 4 additions & 3 deletions python/pyarrow/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ def copy_files(source, destination,
--------
Copy an S3 bucket's files to a local directory:

>>> copy_files("s3://your-bucket-name", "local-directory")
>>> copy_files("s3://your-bucket-name",
... "local-directory") # doctest: +SKIP

Using a FileSystem object:

>>> copy_files("your-bucket-name", "local-directory",
... source_filesystem=S3FileSystem(...))
... source_filesystem=S3FileSystem(...)) # doctest: +SKIP

"""
source_fs, source_path = _resolve_filesystem_and_path(
Expand Down Expand Up @@ -263,7 +264,7 @@ class FSSpecHandler(FileSystemHandler):

Examples
--------
>>> PyFileSystem(FSSpecHandler(fsspec_fs))
>>> PyFileSystem(FSSpecHandler(fsspec_fs)) # doctest: +SKIP
"""

def __init__(self, fs):
Expand Down
4 changes: 2 additions & 2 deletions python/pyarrow/parquet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ def read_pandas(self, **kwargs):
Select pandas metadata:

>>> dataset.read_pandas(columns=["n_legs"]).schema.pandas_metadata
{'index_columns': [{'kind': 'range', ... 'pandas_version': '1.4.1'}
{'index_columns': [{'kind': 'range', 'name': None, 'start': 0, ...}
"""
return self.read(use_pandas_metadata=True, **kwargs)

Expand Down Expand Up @@ -2486,7 +2486,7 @@ def read_pandas(self, **kwargs):
n_legs: [[2,2,4,4,5,100]]

>>> dataset.read_pandas(columns=["n_legs"]).schema.pandas_metadata
{'index_columns': [{'kind': 'range', ... 'pandas_version': '1.4.1'}
{'index_columns': [{'kind': 'range', 'name': None, 'start': 0, ...}
"""
return self.read(use_pandas_metadata=True, **kwargs)

Expand Down