kochlisGit / ProphitBet-Soccer-Bets-Predictor

ProphitBet is a Machine Learning Soccer Bet prediction application. It analyzes the form of teams, computes match statistics and predicts the outcomes of a match using Advanced Machine Learning (ML) methods. The supported algorithms in this application are Neural Networks, Random Forests & Ensembl Models.
MIT License
312 stars 113 forks source link

NAN values in HW Series #81

Open kwadwobro opened 5 months ago

kwadwobro commented 5 months ago

I am wondering why there are nan values in the HW column created on this line of the code

def compute_home_wins(self, matches_df: pd.DataFrame) -> pd.DataFrame: matches_df['HW'] = self._compute_last_results(matches_df=matches_df, team_column='Home Team', result='H')

    return matches_df

in database/repositories/leagues.py