Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mean(li, data=None):
- """
- Calculates the mean of a set of numbers
- """
- if type(li) == list:
- return scipy.mean([float(i) for i in li])
- return [scipy.mean([float(x[i]) for x in li]) for i in range(len(li[0])) ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement