The linear regression code is showing an issue (as shown below)
When tracking back, the issue seems to have something to do with the indexing, right at the point where the code counts the missing values.
From my knowledge it seems like the code is trying to find the index in train_index, under the column string judging by the following bit of code under indexing.py:
Simply put, the code is attempting to find the values of 'train_index' in 'columns' but columns is literally a string containing "Growth Factor of New Deaths"
The problem has come down to the sample sizes of train_index and test_index being different. So I'll have to reshape it or not use it, depending on the direction of which e are trying to go at
The linear regression code is showing an issue (as shown below)
When tracking back, the issue seems to have something to do with the indexing, right at the point where the code counts the missing values.
From my knowledge it seems like the code is trying to find the index in train_index, under the column string judging by the following bit of code under indexing.py:
Simply put, the code is attempting to find the values of 'train_index' in 'columns' but columns is literally a string containing "Growth Factor of New Deaths"