Skip to content

Commit 551b3ea

Browse files
committed
modify error messages
1 parent 7ef47ca commit 551b3ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

databricks/koalas/frame.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6816,8 +6816,8 @@ def melt(self, id_vars=None, value_vars=None, var_name=None,
68166816
raise KeyError("The following 'id_vars' are not present"
68176817
" in the DataFrame: {}".format(missing))
68186818
else:
6819-
raise KeyError("None of [{}] are in the [columns]"
6820-
.format(pd.MultiIndex.from_tuples(non_existence_col)))
6819+
raise KeyError("None of {} are in the {}"
6820+
.format(non_existence_col, column_index))
68216821

68226822
if value_vars is None:
68236823
value_vars = []
@@ -6844,8 +6844,8 @@ def melt(self, id_vars=None, value_vars=None, var_name=None,
68446844
raise KeyError("The following 'value_vars' are not present"
68456845
" in the DataFrame: {}".format(missing))
68466846
else:
6847-
raise KeyError("None of [{}] are in the [columns]"
6848-
.format(pd.MultiIndex.from_tuples(non_existence_col)))
6847+
raise KeyError("None of {} are in the {}"
6848+
.format(non_existence_col, column_index))
68496849

68506850
if len(value_vars) == 0:
68516851
value_vars = column_index

0 commit comments

Comments
 (0)