text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import re
sns.set(color_codes=True, style='darkgrid')

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

games = games[games.rated]
games['mean_rating'] = (games.white_rating + games.black_rating) / 2
games['rating_diff'] = abs(games.white_rating - games.black_rating)

plt.figure(figsize=(10, 5))
sns.distplot(games['mean_rating'])