%matplotlib inline

import numpy as np
import matplotlib.pyplot as plt
transactions = np.random.normal(100.0, 20.0, 10000) # amount_spent_center, std_dev, num_of_transaction
transactions
hist = plt.hist(transactions, 50)
plt.show()

"""
Explanation: Exercise: Mean & Median Customer Spend
Here's some code that will generate some random e-commerce data; just an array of total amount spent per transaction. Select the code block, and hit "play" to execute it:
End of explanation
"""


# find mean, median, mode

# mean
np.mean(transactions)
# median
np.median(transactions)

from scipy import stats
price = np.random.randint(1, high=100, size=10000)
stats.mode(price)

"""
Explanation: Now, find the mean and median of this data. In the code block below, write your code, and see if your result makes sense:
End of explanation
"""


