Stocker library error
Thetechiehand opened this issue · comments
Importing plotly failed. Interactive plots will not work.
AttributeError Traceback (most recent call last)
c:\Users\rohit\Desktop\Python Files\NUMPYex.py in
27 from stocker.stocker import Stocker
----> 28 microsoft = Stocker(ticker='MSFT')
29 techm = Stocker(ticker='TECHM', exchange='NSE')
F:\Anaconda\lib\site-packages\stocker\stocker.py in init(self, ticker, exchange)
68
69 # The starting price (starting with the opening price)
---> 70 self.starting_price = float(self.stock.ix[0, 'Adj. Open'])
71
72 # The most recent price
F:\Anaconda\lib\site-packages\pandas\core\generic.py in getattr(self, name)
5463 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5464 return self[name]
-> 5465 return object.getattribute(self, name)
5466
5467 def setattr(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'ix'
Please help me with this!!