将一些数据框放入 TA-Lib 库时出现错误,不知道下一步该怎么做

getting some error while putting some dataframes in TA-Lib library, don't know what to do next

我在 ta-lib 库中放置了一些数据框来检测吞没模式,但出现了这个错误,我不知道这是什么意思,请帮忙

import pandas as pd
import talib as tb

bnkin = pd.read_csv("BANKINDIA.csv")
print(bnkin)

integer = tb.CDLENGULFING(bnkin['open'], bnkin['high'], bnkin['low'], bnkin['close'])
print(integer)
Traceback (most recent call last):
  File "C:\Users\myads\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\indexes\base.py", line 3081, in get_loc   
    return self._engine.get_loc(casted_key)
  File "pandas\_libs\index.pyx", line 70, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\index.pyx", line 101, in pandas._libs.index.IndexEngine.get_loc
  File "pandas\_libs\hashtable_class_helper.pxi", line 4554, in pandas._libs.hashtable.PyObjectHashTable.get_item
  File "pandas\_libs\hashtable_class_helper.pxi", line 4562, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'open'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "c:/Users/myads/OneDrive/Desktop/technical_analysis/TAprg.py", line 29, in <module>
    integer = tb.CDLENGULFING(bnkin['open'], bnkin['high'], bnkin['low'], bnkin['close'])
  File "C:\Users\myads\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\frame.py", line 3024, in __getitem__      
    indexer = self.columns.get_loc(key)
  File "C:\Users\myads\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\core\indexes\base.py", line 3083, in get_loc
    raise KeyError(key) from err
KeyError: 'open'

BANKINDIA.csv:-

您正在查找列 'open',但您的 csv 包含列 'Open',因此出现键错误。