From 64a3768c9d1a8a8c9e0d7b8a9507d4395983104c Mon Sep 17 00:00:00 2001 From: Tyler White <50381805+IndexSeek@users.noreply.github.com> Date: Sun, 17 Nov 2024 18:17:06 -0500 Subject: [PATCH] MINOR: [Docs][Python] Fix a few minor typos (#44756) ### Rationale for this change I noticed a few typos in the documentation and a single typo in the pyproject file. This change corrects these typos. ### What changes are included in this PR? The following spelling corrections have been applied: fo -> to scenerios -> scenarios wich -> which suiteable -> suitable avaiable -> available (this is in the pyproject.toml file regarding a NumPy comment for older Python versions) ### Are these changes tested? No executable code is modified with these changes. ### Are there any user-facing changes? Only the documentation is being updated. Authored-by: Tyler White <50381805+IndexSeek@users.noreply.github.com> Signed-off-by: Sutou Kouhei --- python/pyarrow/_fs.pyx | 2 +- python/pyarrow/_s3fs.pyx | 2 +- python/pyarrow/io.pxi | 6 +++--- python/pyproject.toml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/pyarrow/_fs.pyx b/python/pyarrow/_fs.pyx index dbfb6ed114553..e315dd6381f41 100644 --- a/python/pyarrow/_fs.pyx +++ b/python/pyarrow/_fs.pyx @@ -939,7 +939,7 @@ cdef class FileSystem(_Weakrefable): ... f.write(b'+newly added') 12 - Print out the content fo the file: + Print out the content to the file: >>> with local.open_input_file(path) as f: ... print(f.readall()) diff --git a/python/pyarrow/_s3fs.pyx b/python/pyarrow/_s3fs.pyx index ba6603322838d..038f9109d8152 100644 --- a/python/pyarrow/_s3fs.pyx +++ b/python/pyarrow/_s3fs.pyx @@ -249,7 +249,7 @@ cdef class S3FileSystem(FileSystem): rather than issue two dependent I/O calls. If true, when creating a directory the code will only create the directory when necessary at the cost of extra I/O calls. This can be used for key/value cloud storage which has - a hard rate limit to number of object mutation operations or scenerios such as + a hard rate limit to number of object mutation operations or scenarios such as the directories already exist and you do not have creation access. retry_strategy : S3RetryStrategy, default AwsStandardS3RetryStrategy(max_attempts=3) The retry strategy to use with S3; fail after max_attempts. Available diff --git a/python/pyarrow/io.pxi b/python/pyarrow/io.pxi index 1d942e8ccabc6..b3de15067fbfa 100644 --- a/python/pyarrow/io.pxi +++ b/python/pyarrow/io.pxi @@ -1761,7 +1761,7 @@ cdef class CompressedInputStream(NativeFile): Examples -------- - Create an output stream wich compresses the data: + Create an output stream which compresses the data: >>> import pyarrow as pa >>> data = b"Compressed stream" @@ -1818,7 +1818,7 @@ cdef class CompressedOutputStream(NativeFile): Examples -------- - Create an output stream wich compresses the data: + Create an output stream which compresses the data: >>> import pyarrow as pa >>> data = b"Compressed stream" @@ -2342,7 +2342,7 @@ cdef class CacheOptions(_Weakrefable): def from_network_metrics(time_to_first_byte_millis, transfer_bandwidth_mib_per_sec, ideal_bandwidth_utilization_frac=0.9, max_ideal_request_size_mib=64): """ - Create suiteable CacheOptions based on provided network metrics. + Create suitable CacheOptions based on provided network metrics. Typically this will be used with object storage solutions like Amazon S3, Google Cloud Storage and Azure Blob Storage. diff --git a/python/pyproject.toml b/python/pyproject.toml index 32b95254f217d..85bdbec0915ed 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -20,7 +20,7 @@ requires = [ "cython >= 0.29.31", # Starting with NumPy 1.25, NumPy is (by default) as far back compatible # as oldest-support-numpy was (customizable with a NPY_TARGET_VERSION - # define). For older Python versions (where NumPy 1.25 is not yet avaiable) + # define). For older Python versions (where NumPy 1.25 is not yet available) # continue using oldest-support-numpy. "oldest-supported-numpy>=0.14; python_version<'3.9'", "numpy>=1.25; python_version>='3.9'",