File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ def _check_and_prepare_data(data, config):
46
46
expect_cols = columns
47
47
else :
48
48
expect_cols = cols
49
-
50
- for c in expect_cols :
51
- if c not in data .columns :
49
+
50
+ for col in expect_cols :
51
+ if col not in data .columns :
52
52
for dc in data .columns :
53
53
if dc .strip () != dc :
54
54
warnings .warn ('\n ================================================================= ' +
55
55
'\n Input DataFrame column name "' + dc + '" ' +
56
56
'\n contains leading and/or trailing whitespace.' ,category = UserWarning )
57
- raise ValueError ('Column "' + c + '" NOT FOUND in Input DataFrame!' +
57
+ raise ValueError ('Column "' + col + '" NOT FOUND in Input DataFrame!' +
58
58
'\n CHECK that your column names are correct AND/OR' +
59
59
'\n CHECK for leading or trailing blanks in your column names.' )
60
60
You can’t perform that action at this time.
0 commit comments