In [1]:
%matplotlib inline
from pylab import rcParams
rcParams['figure.figsize'] = 12, 12
import seaborn as sns
import pandas as pd
In [2]:
df = pd.read_csv('table.csv')
df
Out[2]:
In [3]:
df=pd.melt(df, id_vars=['hour', 'day'])
df
Out[3]:
In [4]:
#ax = sns.pointplot(x="hour", y="females", data=df)
g = sns.FacetGrid(df, col="day")#, size=4, aspect=.5)
g = g.map(sns.boxplot, "variable", "value")
In [5]:
sns.pointplot(x="day",
y="value",
data=df,
hue="variable",
markers=['o', 'x'])
sns.plt.title('Day wise variation')
Out[5]:
In [6]:
sns.pointplot(x="hour", y="value", data=df, hue="variable", markers=['o', 'x'], main="test")
sns.plt.title('Hour wise variation')
Out[6]:
In [ ]: