예제 #1
0
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)
예제 #2
0
def match_statistics():
    data = GetData.get_all_matches()
    data.describe().to_csv('../Data/Statistics/stats.csv', index=True)
    print(data.describe())