python seaborn catplot code example
Example 1: seaborn catplot text
ax = sns.catplot(x='marital_status',y='age',hue='relationship',kind='point',data=census_data)ax.fig.autofmt_xdate()
Example 2: seaborn catplot text
df = pd.DataFrame(dict(time=np.arange(500), value=np.random.randn(500).cumsum()))g = sns.relplot(x="time", y="value", kind="line", data=df)g.fig.autofmt_xdate()"""Figure-level interface for drawing relational plots onto a FacetGrid.This function provides access to several different axes-level functionsthat show the relationship between two variables with semantic mappingsof subsets. The ``kind`` parameter selects the underlying axes-levelfunction to use:- :func:`scatterplot` (with ``kind="scatter"``; the default)- :func:`lineplot` (with ``kind="line"``)"""