Coder Social home page Coder Social logo

damonlee92 / build_your_own_ai_investor Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 55.0 2.52 MB

Build your own AI investor. Track performance on www.valueinvestingai.com. Buy the book on Amazon.

License: GNU General Public License v3.0

Jupyter Notebook 100.00%

build_your_own_ai_investor's People

Contributors

damonlee92 avatar jgn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

build_your_own_ai_investor's Issues

KeyError: 'Net Income_X'

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'`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.