In [25]:
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
In [29]:
sns.set(font_scale=1.8)
In [5]:
df = pd.read_csv('test_data.csv')
In [6]:
df.head()
Out[6]:
In [39]:
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_title('truly positive group')
ax = sns.stripplot(x="gender_female", y="score", data=df[df.true_label==True], jitter=True, ax=ax, size=5)
In [40]:
fig = plt.figure()
ax = fig.add_subplot(111)
ax.set_title('truly negative group')
ax = sns.stripplot(x="gender_female", y="score", data=df[df.true_label==False], jitter=True, ax=ax, size=5)