Skip to content

Commit ba61af8

Browse files
committed
fixing message
1 parent f658c1a commit ba61af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggplot/aes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def factor(s, levels=None, labels=None):
103103
data[item] = new_val
104104
except:
105105
msg = "Invalid column: '%s'" % str(item)
106-
matches = difflib.get_close_matches(item, self.data.values())
106+
matches = difflib.get_close_matches(item, data.columns)
107107
msg += "\ndid you mean one of the following:\n"
108108
for match in matches:
109109
msg += " - %s\n" % match

0 commit comments

Comments
 (0)