You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by em...@apache.org on 2021/04/07 15:43:32 UTC
[arrow] branch fix_typo updated: MINOR: Fix "Parametrized" typo in
docs
This is an automated email from the ASF dual-hosted git repository.
emkornfield pushed a commit to branch fix_typo
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/fix_typo by this push:
new 1c11b9f MINOR: Fix "Parametrized" typo in docs
1c11b9f is described below
commit 1c11b9f65692c5a86125b8d06e66bf6ae80448dc
Author: emkornfield <em...@gmail.com>
AuthorDate: Wed Apr 7 08:41:40 2021 -0700
MINOR: Fix "Parametrized" typo in docs
---
docs/source/python/extending_types.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/source/python/extending_types.rst b/docs/source/python/extending_types.rst
index 6613dec..d3ab561 100644
--- a/docs/source/python/extending_types.rst
+++ b/docs/source/python/extending_types.rst
@@ -131,7 +131,7 @@ We can define the same type using the other option::
pa.ExtensionType.__init__(self, pa.binary(16), "my_package.uuid")
def __arrow_ext_serialize__(self):
- # since we don't have a parametrized type, we don't need extra
+ # since we don't have a parameterized type, we don't need extra
# metadata to be deserialized
return b''
@@ -159,11 +159,11 @@ type to receive it.
If the type is not registered in the receiving application, it will fall back
to the storage type.
-Parametrized extension type
+Parameterized extension type
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above example used a fixed storage type with no further metadata. But
-more flexible, parametrized extension types are also possible.
+more flexible, parameterized extension types are also possible.
The example given here implements an extension type for the `pandas "period"
data type <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#time-span-representation>`__,
@@ -207,7 +207,7 @@ the reconstruction of the type instance after IPC will be incorrect.
In the example above, the ``freq`` parameter is therefore stored in a private
attribute with a public read-only property to access it.
-Parametrized extension types are also possible using the pickle-based type
+Parameterized extension types are also possible using the pickle-based type
subclassing :class:`PyExtensionType`. The equivalent example for the period
data type from above would look like::
@@ -224,7 +224,7 @@ data type from above would look like::
def __reduce__(self):
return PeriodType, (self.freq,)
-Also the storage type does not need to be fixed but can be parametrized.
+Also the storage type does not need to be fixed but can be parameterized.
Custom extension array class
~~~~~~~~~~~~~~~~~~~~~~~~~~~~