def raw_match_statistics(): """ function that loads all matches and prints statistics """ matches = GetData.get_all_matches() print(matches.isnull().sum()) print('Columns:', len(matches.columns)) print('rows with nans:', len(matches) - len(matches.dropna())) matches.isnull().sum().to_csv( '/Users/vegardhaneberg/Desktop/isnullmatches.csv', index=False) print(matches.describe()) print(matches.dtypes)
def match_statistics(): data = GetData.get_all_matches() data.describe().to_csv('../Data/Statistics/stats.csv', index=True) print(data.describe())