Skip to content

Instantly share code, notes, and snippets.

@marcosatanaka
Created April 24, 2018 19:50
Show Gist options
  • Save marcosatanaka/5b0a863f1673460900b77f5a0341f2cc to your computer and use it in GitHub Desktop.
Save marcosatanaka/5b0a863f1673460900b77f5a0341f2cc to your computer and use it in GitHub Desktop.
# Extraindo estatísticas
minimum_price = np.amin(prices)
maximum_price = np.amax(prices)
mean_price = np.average(prices)
median_price = np.median(prices)
std_price = np.std(prices)
print "Estatísticas para os dados dos imóveis:\n"
print "Preço mínimo: ${:,.2f}".format(minimum_price)
print "Preço máximo: ${:,.2f}".format(maximum_price)
print "Preço médio: ${:,.2f}".format(mean_price)
print "Preço mediano: ${:,.2f}".format(median_price)
print "Desvio padrão dos preços: ${:,.2f}".format(std_price)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment