Skip to content

Commit 9dc9d80

Browse files
tdpetroujreback
authored andcommitted
melt moved into its own module (#18148)
1 parent aebe2a9 commit 9dc9d80

File tree

6 files changed

+392
-379
lines changed

6 files changed

+392
-379
lines changed

pandas/core/api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
from pandas.core.panel import Panel, WidePanel
2525
from pandas.core.panel4d import Panel4D
2626
from pandas.core.reshape.reshape import (
27-
pivot_simple as pivot, get_dummies,
28-
lreshape, wide_to_long)
27+
pivot_simple as pivot, get_dummies)
28+
from pandas.core.reshape.melt import lreshape, wide_to_long
2929

3030
from pandas.core.indexing import IndexSlice
3131
from pandas.core.tools.numeric import to_numeric

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4637,7 +4637,7 @@ def unstack(self, level=-1, fill_value=None):
46374637
other='melt'))
46384638
def melt(self, id_vars=None, value_vars=None, var_name=None,
46394639
value_name='value', col_level=None):
4640-
from pandas.core.reshape.reshape import melt
4640+
from pandas.core.reshape.melt import melt
46414641
return melt(self, id_vars=id_vars, value_vars=value_vars,
46424642
var_name=var_name, value_name=value_name,
46434643
col_level=col_level)

pandas/core/reshape/api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# flake8: noqa
22

33
from pandas.core.reshape.concat import concat
4-
from pandas.core.reshape.reshape import melt
4+
from pandas.core.reshape.melt import melt
55
from pandas.core.reshape.merge import (
66
merge, ordered_merge, merge_ordered, merge_asof)
77
from pandas.core.reshape.pivot import pivot_table, crosstab

0 commit comments

Comments
 (0)