Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created March 30, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/7c357551e9d4112af6f5a379e0d88ce8 to your computer and use it in GitHub Desktop.
Save amankharwal/7c357551e9d4112af6f5a379e0d88ce8 to your computer and use it in GitHub Desktop.
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set()
data = np.random.multivariate_normal([0, 0], [[5, 2], [2, 2]], size=2000)
data = pd.DataFrame(data, columns=['x', 'y'])
sns.distplot(data['x'])
sns.distplot(data['y'])
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment