You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENH] Add DataFrame method to explode a list-like column (GH pandas-dev#16538)
Sometimes a values column is presented with list-like values on one row.
Instead we may want to split each individual value onto its own row,
keeping the same mapping to the other key columns. While it's possible
to chain together existing pandas operations (in fact that's exactly
what this implementation is) to do this, the sequence of operations
is not obvious. By contrast this is available as a built-in operation
in say Spark and is a fairly common use case.
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.rst
+30
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,37 @@ This is a major release from 0.23.4 and includes a number of API changes, new
15
15
features, enhancements, and performance improvements along with a large number
16
16
of bug fixes.
17
17
18
+
<<<<<<< HEAD
18
19
Highlights include:
20
+
=======
21
+
These are the changes in pandas 0.24.0. See :ref:`release` for a full changelog
22
+
including other versions of pandas.
23
+
24
+
.. _whatsnew_0240.enhancements:
25
+
26
+
New features
27
+
~~~~~~~~~~~~
28
+
- :func:`merge` now directly allows merge between objects of type ``DataFrame`` and named ``Series``, without the need to convert the ``Series`` object into a ``DataFrame`` beforehand (:issue:`21220`)
29
+
- ``ExcelWriter`` now accepts ``mode`` as a keyword argument, enabling append to existing workbooks when using the ``openpyxl`` engine (:issue:`3441`)
30
+
- ``FrozenList`` has gained the ``.union()`` and ``.difference()`` methods. This functionality greatly simplifies groupby's that rely on explicitly excluding certain columns. See :ref:`Splitting an object into groups <groupby.split>` for more information (:issue:`15475`, :issue:`15506`).
31
+
- :func:`DataFrame.to_parquet` now accepts ``index`` as an argument, allowing
32
+
the user to override the engine's default behavior to include or omit the
33
+
dataframe's indexes from the resulting Parquet file. (:issue:`20768`)
34
+
- :meth:`DataFrame.corr` and :meth:`Series.corr` now accept a callable for generic calculation methods of correlation, e.g. histogram intersection (:issue:`22684`)
35
+
- :func:`DataFrame.to_string` now accepts ``decimal`` as an argument, allowing the user to specify which decimal separator should be used in the output. (:issue:`23614`)
36
+
- :func:`read_feather` now accepts ``columns`` as an argument, allowing the user to specify which columns should be read. (:issue:`24025`)
37
+
- :func:`DataFrame.to_html` now accepts ``render_links`` as an argument, allowing the user to generate HTML with links to any URLs that appear in the DataFrame.
38
+
See the :ref:`section on writing HTML <io.html>` in the IO docs for example usage. (:issue:`2679`)
39
+
- :func:`DataFrame.explode` to split list-like values onto individual rows. See :ref:`section on Exploding list-like column <reshaping.html>` in docs for more information (:issue:`16538`)
40
+
41
+
.. _whatsnew_0240.values_api:
42
+
43
+
Accessing the values in a Series or Index
44
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
45
+
46
+
:attr:`Series.array` and :attr:`Index.array` have been added for extracting the array backing a
47
+
``Series`` or ``Index``. (:issue:`19954`, :issue:`23623`)
48
+
>>>>>>> 2138ef063... [ENH] Add DataFrame method to explode a list-like column (GH #16538)
19
49
20
50
* :ref:`Optional Integer NA Support <whatsnew_0240.enhancements.intna>`
21
51
* :ref:`New APIs for accessing the array backing a Series or Index <whatsnew_0240.values_api>`
0 commit comments