From 60e195f1bee18d74ab53d371a1cb9892579d4595 Mon Sep 17 00:00:00 2001 From: Farhan Reynaldo Date: Sat, 21 Mar 2020 13:25:23 +0700 Subject: [PATCH 1/2] DOC: Fix errors in pandas.DataFrame.melt --- pandas/core/frame.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d1ba85c50d91d..be5732083eb70 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6449,10 +6449,11 @@ def unstack(self, level=-1, fill_value=None): See Also -------- - %(other)s - pivot_table - DataFrame.pivot - Series.explode + %(other)s : Identical method. + pivot_table : Create a spreadsheet-style pivot table as a DataFrame. + DataFrame.pivot : Return reshaped DataFrame organized + by given index / column values. + Series.explode : Transform each element of a list-like to a row. Examples -------- From 958f045c1329f0da827ba2870ef98d83e087cb40 Mon Sep 17 00:00:00 2001 From: Farhan Reynaldo Date: Sat, 21 Mar 2020 13:35:25 +0700 Subject: [PATCH 2/2] DOC: Fix errors in pandas.DataFrame.melt --- pandas/core/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index be5732083eb70..fbbaa2a67bf35 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6453,7 +6453,8 @@ def unstack(self, level=-1, fill_value=None): pivot_table : Create a spreadsheet-style pivot table as a DataFrame. DataFrame.pivot : Return reshaped DataFrame organized by given index / column values. - Series.explode : Transform each element of a list-like to a row. + DataFrame.explode : Explode a DataFrame from list-like + columns to long format. Examples --------