I was interested in making violin plots showing distribution of fundamentals according to industry, but I ran into unexpected syntax errors when calling sns.violinplot(). Something like this works on a local ipython notebook running seaborn 0.6.0, but not in the research environment:
import pandas as pd
import seaborn as sns
%matplotlib inline
df = pd.DataFrame({
'some_fundamental':np.random.randn(20),
'industry_code':np.random.randint(1,4,20)}
)
sns.violinplot(x='industry_code',y='some_fundamental',data=df)
I pulled up the docstring/signature in the research environment (?sns.violinplot) and get something like:
Signature: sns.violinplot(vals, groupby=None, inner='box', color=None, positions=None, names=None, order=None, bw='scott', widths=0.8, alpha=None, saturation=0.7, join_rm=False, gridsize=100, cut=3, inner_kws=None, ax=None, vert=True, **kwargs)
This looked a little different from what I get using my local notebook:
Signature: sns.violinplot(x=None, y=None, hue=None, data=None, order=None, hue_order=None, bw='scott', cut=2, scale='area', scale_hue=True, gridsize=100, width=0.8, inner='box', split=False, orient=None, linewidth=None, color=None, palette=None, saturation=0.75, ax=None, **kwargs)
which is why I was wondering if the seaborn version in the research envionment was up to date.