Skip to content

Instantly share code, notes, and snippets.

@grahamharrison68
Created October 17, 2020 17:23
Show Gist options
  • Save grahamharrison68/9482f9e4aacb511623342f2d9662f25b to your computer and use it in GitHub Desktop.
Save grahamharrison68/9482f9e4aacb511623342f2d9662f25b to your computer and use it in GitHub Desktop.
# %% Create a normal distriubtion with some outliers
mu, sigma = 0, 0.1 # mean and standard deviation
s = np.random.normal(mu, sigma, 1000) # create 1000 normally distributed data points
df_normal = pd.DataFrame({'Col0': s})
df_normal['Col0'].hist()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment