Skip to content

melt moved into its own module #18148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
from pandas.core.panel import Panel, WidePanel
from pandas.core.panel4d import Panel4D
from pandas.core.reshape.reshape import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see if you can move these reshape imports here to pandas.core.reshape.api (with the other ones); reshape.api is already imported to pandas.__init__, just make more sense there

pivot_simple as pivot, get_dummies,
lreshape, wide_to_long)
pivot_simple as pivot, get_dummies)
from pandas.core.reshape.melt import lreshape, wide_to_long

from pandas.core.indexing import IndexSlice
from pandas.core.tools.numeric import to_numeric
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,7 @@ def unstack(self, level=-1, fill_value=None):
other='melt'))
def melt(self, id_vars=None, value_vars=None, var_name=None,
value_name='value', col_level=None):
from pandas.core.reshape.reshape import melt
from pandas.core.reshape.melt import melt
return melt(self, id_vars=id_vars, value_vars=value_vars,
var_name=var_name, value_name=value_name,
col_level=col_level)
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/reshape/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# flake8: noqa

from pandas.core.reshape.concat import concat
from pandas.core.reshape.reshape import melt
from pandas.core.reshape.melt import melt
from pandas.core.reshape.merge import (
merge, ordered_merge, merge_ordered, merge_asof)
from pandas.core.reshape.pivot import pivot_table, crosstab
Expand Down
Loading