Skip to content

Commit

Permalink
whatsnew
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Jain committed Oct 31, 2023
1 parent adbf4e1 commit 585ad2d
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions doc/source/whatsnew/v2.2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,30 @@ DataFrame. (:issue:`54938`)
)
series.struct.explode()
.. _whatsnew_220.enhancements.enhancement2:
.. _whatsnew_220.enhancements.list_accessor:

enhancement2
^^^^^^^^^^^^
Series.list accessor for PyArrow list data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The ``Series.list`` accessor provides attributes and methods for processing
data with ``list[pyarrow]`` dtype Series. For example,
:meth:`Series.list.__getitem__` allows indexing pyarrow lists in
a Series. (:issue:`55323`)

.. ipython:: python
import pyarrow as pa
series = pd.Series(
[
[1, 2, 3],
[4, 5],
[6],
],
dtype=pd.ArrowDtype(
pa.list_(pa.int64())
),
)
series.list[0]
.. _whatsnew_220.enhancements.other:

Expand Down

0 comments on commit 585ad2d

Please sign in to comment.