-
-
Save marcosatanaka/5b0a863f1673460900b77f5a0341f2cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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