I am making a calculator for calculating the probability of getting Corona-Virus by inputting your data like age , body pain , difficulty in breathing and other things and genrates probability of getting COVID.
This was made using Python , Jupyter , HTML , AI . I am a coder in India which is in a serious crisis of COVID. Was Made using this with a tutorial .
When i run: python myTraining.py
it spits out this error:
Traceback (most recent call last):
File "e:/WhiteHat JR/Hackathon/code/hackathon_whjr-covid-calculator-1/myTraining.py", line 25, in <module>
Y_train = train[['infectionProb' ]].to_numpy().reshape(800,)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\frame.py", line 2908, in __getitem__
indexer = self.loc._get_listlike_indexer(key, axis=1, raise_missing=True)[1]
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexing.py", line 1254, in _get_listlike_indexer
self._validate_read_indexer(keyarr, indexer, axis, raise_missing=raise_missing)
File "C:\ProgramData\Anaconda3\lib\site-packages\pandas\core\indexing.py", line 1298, in _validate_read_indexer
raise KeyError(f"None of [{key}] are in the [{axis_name}]")
KeyError: "None of [Index(['infectionProb'], dtype='object')] are in the [columns]"