# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt data1=[85,62,78,64,25,12,74,96,63,45,78,20,5,30,45,78,45,96,65,45,74,12,78,23,8] # create a data mean=np.mean(data1) #data mean variance=np.var(data1) #data variance standartdev=np.std(data1) #data standart deviation max=np.max(data1) # biggest number of data1 min=np.min(data1) #smallest number of data1 percentiles=numpy.percentile(data1,25) #percentiles of data1 # we find percentile 25 plt.plot(data1) plt.show() plt.pie(data1) plt.show() # we show graph of data1 #pie and plot
11 Ocak 2014 Cumartesi
Data Analysis in Python-Descriptive Statistics
Kaydol:
Kayıt Yorumları (Atom)
Try IPython Notebooks. They are more cool than just pasted source codes.
YanıtlaSili know and use IPython Notebooks but a lot of people dont know it so i show codes here. Thank you anatoly.
YanıtlaSilCool! Thanks for the nice np intro. I am now move on :D
YanıtlaSilthank you Adrian. i will share more this about topic.
YanıtlaSil