text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df_games = pd.read_csv('../input/games.csv')

keep = ['id', 'rated', 'turns', 'victory_status', 'winner', 'increment_code', 'white_rating', 'black_rating', 'moves', 'opening_eco', 'opening_name', 'opening_ply']
df_games = df_games[keep]

df_minis = df_games[df_games['turns'] <= 30]
games = len(df_games.index)
minis = len(df_minis.index)
percent_minis = round(minis / games * 100, 2)
print('{mi}/{gmes} = {percent}% games are minis.'.format(mi=minis, gmes=games, percent=percent_minis))