Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d63f27f

Browse files
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

Lines changed: 4 additions & 4 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /