damonlee92 / build_your_own_ai_investor Goto Github PK
View Code? Open in Web Editor NEWBuild your own AI investor. Track performance on www.valueinvestingai.com. Buy the book on Amazon.
License: GNU General Public License v3.0
Build your own AI investor. Track performance on www.valueinvestingai.com. Buy the book on Amazon.
License: GNU General Public License v3.0
At the end of Chapter 4.2, while running the app in Jupyter Notebook, I encounter a KeyError in the final cell output...
`KeyError Traceback (most recent call last)
<ipython-input-39-96ae9c885c31> in <module>
1 x_=pd.read_csv("Annual_Stock_Price_Fundamentals_Filtered_2020.csv", index_col=0)
----> 2 x_['Net Income'] = x_['Net Income_X'] # Net Income fix, checked annual reports.
3 fixNansInX()
4 addColsToX()
5 x=getXRatios()
~\miniconda3\envs\machineLearning-env-py377\lib\site-packages\pandas\core\frame.py in __getitem__(self, key)
3022 if self.columns.nlevels > 1:
3023 return self._getitem_multilevel(key)
-> 3024 indexer = self.columns.get_loc(key)
3025 if is_integer(indexer):
3026 indexer = [indexer]
~\miniconda3\envs\machineLearning-env-py377\lib\site-packages\pandas\core\indexes\base.py in get_loc(self, key, method, tolerance)
3080 return self._engine.get_loc(casted_key)
3081 except KeyError as err:
-> 3082 raise KeyError(key) from err
3083
3084 if tolerance is not None:
KeyError: 'Net Income_X'`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.