JakeKandell/NBA-Predict

makePastPredictions Error

JBerg0714 opened this issue · 1 comments

Hi,

I am trying to add the csv files for the most recent NBA season (2019-2020) and am receiving the following error:

File "/Users/joshuaberg/Desktop/NBA-Predict-master/createModel.py", line 78, in createMeanStandardDeviationDicts
statMean = basicOrAdvancedStatMean(startDate, endDate, stat, statType, season)
File "/Users/joshuaberg/Desktop/NBA-Predict-master/standardizeStats.py", line 28, in basicOrAdvancedStatMean
mean = statistics.mean(specificStatAllTeams)  # Finds mean of stat
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/statistics.py", line 311, in mean
raise StatisticsError('mean requires at least one data point')
statistics.StatisticsError: mean requires at least one data point

Sorry for the late response, if you want me to still try and help, I would need to see what the what your makePastPredictions() call looks like when that error message occurs.