Skip to content

Commit 129d531

Browse files
author
Joshua Bradt
committed
Moved binary operators to satisfy flake8
1 parent 70d7256 commit 129d531

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/reshape.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ def melt(frame, id_vars=None, value_vars=None, var_name=None,
763763
if id_vars is not None:
764764
if not is_list_like(id_vars):
765765
id_vars = [id_vars]
766-
elif (isinstance(frame.columns, MultiIndex)
767-
and not isinstance(id_vars, list)):
766+
elif (isinstance(frame.columns, MultiIndex) and
767+
not isinstance(id_vars, list)):
768768
raise TypeError('id_vars must be a list of tuples when columns'
769769
' are a MultiIndex')
770770
else:
@@ -775,8 +775,8 @@ def melt(frame, id_vars=None, value_vars=None, var_name=None,
775775
if value_vars is not None:
776776
if not is_list_like(value_vars):
777777
value_vars = [value_vars]
778-
elif (isinstance(frame.columns, MultiIndex)
779-
and not isinstance(value_vars, list)):
778+
elif (isinstance(frame.columns, MultiIndex) and
779+
not isinstance(value_vars, list)):
780780
raise TypeError('value_vars must be a list of tuples when'
781781
' columns are a MultiIndex')
782782
else:

0 commit comments

Comments
 (0)