Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

py mean

numbers = [3, 18, 2, 1, 70, 12, 36, 12, 78, 5, 6, 9]

import statistics

print(statistics.mean(numbers))
Comment

mean python

import numpy as np
values=[1,10,100]
print(np.mean(values))
values=[1,10,100,np.nan]
print(np.nanmean(values))
Comment

PREVIOUS NEXT
Code Example
Python :: pattern in python 
Python :: how to move tkinter images 
Python :: How to colour a specific cell in pandas dataframe 
Python :: python pip jupyter notebook install 
Python :: python-telegram-bot 
Python :: detect operating system using python 
Python :: measure time per line python 
Python :: add a value to an existing field in pandas dataframe after checking conditions 
Python :: python remove everything after character 
Python :: como transformar texto a audio y reproducirlo en pyrthon 
Python :: python find in list 
Python :: google text to speech python 
Python :: dataframe to dict without index 
Python :: pandas lamda column reference 
Python :: color python 
Python :: django id 
Python :: wait in python 
Python :: pandas apply function to each row lambda 
Python :: train_test_split sklearn 
Python :: python pad with spaces 
Python :: python webdriver disable logs 
Python :: random picker python 
Python :: How to store password in hashlib in python 
Python :: python remove space from end of string 
Python :: apply lambda function to multiple columns pandas 
Python :: setting urls 
Python :: run python notepad++ 
Python :: solve ax=b python 
Python :: python user input 
Python :: python code to exe file 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =