Skip to content

Commit a9e8581

Browse files
committed
Address review
1 parent fbd76aa commit a9e8581

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/source/whatsnew/v1.5.0.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ initialized with a ``pyarrow.DataType``
3232
ser_float = pd.Series([1.0, 2.0, None], dtype="float32[pyarrow]")
3333
ser_float
3434
35-
ser_list = pd.Series([[1, 2]], dtype=pd.ArrowDtype(pa.list_(pa.int64())))
35+
list_of_int_type = pd.ArrowDtype(pa.list_(pa.int64()))
36+
ser_list = pd.Series([[1, 2], [3, None]], dtype=list_of_int_type)
3637
ser_list
3738
3839
Most operations are supported and have been implemented using `pyarrow compute <https://arrow.apache.org/docs/python/api/compute.html>`__ functions.
3940
We recommend installing the latest version of PyArrow to access the most recently implemented compute functions.
4041

4142
.. ipython:: python
4243
43-
ser_list.take([0, 0])
44+
ser_list.take([1, 0])
4445
ser_float * 5
4546
ser_float.mean()
4647
ser_float.dropna()

pandas/core/arrays/arrow/array.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class ArrowExtensionArray(OpsMixin, ExtensionArray):
163163
164164
Parameters
165165
----------
166-
values: pyarrow.Array or pyarrow.ChunkedArray
166+
values : pyarrow.Array or pyarrow.ChunkedArray
167167
168168
Returns
169169
-------
@@ -175,9 +175,9 @@ class ArrowExtensionArray(OpsMixin, ExtensionArray):
175175
Some methods may either raise an exception or raise a ``PerformanceWarning`` if an
176176
associated compute function is not available based on the installed version of PyArrow.
177177
178-
Please install the latest version of PyArrow to enable this functionality and avoid
178+
Please install the latest version of PyArrow to enable the best functionality and avoid
179179
potential bugs in prior versions of PyArrow.
180-
""" # noqa: E501
180+
""" # noqa: E501 (http link too long)
181181

182182
_data: pa.ChunkedArray
183183
_dtype: ArrowDtype

0 commit comments

Comments
 (0)