Skip to content

Commit d63f27f

Browse files
committedNov 1, 2022
fix bug that was trashing "Close" values
1 parent 2ea49e4 commit d63f27f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/mplfinance/_arg_validators.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ def _check_and_prepare_data(data, config):
4646
expect_cols = columns
4747
else:
4848
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:
5252
for dc in data.columns:
5353
if dc.strip() != dc:
5454
warnings.warn('\n ================================================================= '+
5555
'\n Input DataFrame column name "'+dc+'" '+
5656
'\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!'+
5858
'\n CHECK that your column names are correct AND/OR'+
5959
'\n CHECK for leading or trailing blanks in your column names.')
6060

0 commit comments

Comments
 (0)
Please sign in to comment.