Answers for "plot the distribution of data in python"

0

scatter density plot seaborn

>>> iris = sns.load_dataset("iris")
>>> g = sns.jointplot("sepal_width", "petal_length", data=iris,
...                   kind="kde", space=0, color="g")
Posted by: Guest on May-30-2020
0

mean =[0,0] covariance = [[1,0],[0,100]] ds = np.random.multivariate_normal(mean,covariance,500) dframe = pd.DataFrame(ds, columns=['col1', 'col2']) fig = sns.kdeplot(dframe).get_figure() fig.savefig('kde1.png')

mean =[0,0]
covariance = [[1,0],[0,100]]

ds = np.random.multivariate_normal(mean,covariance,500)

dframe = pd.DataFrame(ds, columns=['col1', 'col2'])

fig = sns.kdeplot(dframe).get_figure()
fig.savefig('kde1.png')
Posted by: Guest on May-11-2020

Code answers related to "plot the distribution of data in python"

Python Answers by Framework

Browse Popular Code Answers by Language