Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

unpack list

result = df.groupby('cat')['num'].apply(list)
print (result)
cat
type1    [164, 172, 168, 177, 156, 195]
type2    [178, 191, 197, 182, 185, 177]
type3    [175, 193, 178, 171, 163, 176]
type4    [155, 166, 149, 164, 170, 168]
Name: num, dtype: object

F, p = scipy.stats.f_oneway(*result)
print (F)
5.406342913776015
print (p)
0.0068759477547351
Comment

PREVIOUS NEXT
Code Example
Python :: how to usepygame.sprite.spritecollide 
Python :: python kdtree import 
Python :: sneon dr pepper 
Python :: how to choose a random key from a dictionary in python 
Python :: data[:,:2] 
Python :: write yaml file without deleting content 
Python :: plt.text background alpha 
Python :: how to resize image with pillow in django 
Python :: reate the "soup." This is a beautiful soup object: 
Python :: van first name van second name van last name 
Python :: picobot python 
Python :: (function(a_,%20b_)%20%7B%20with%20(a_)%20with%20(b_)%20return%20summary%20%7D) 
Python :: name =input ("hello how are you ") if name==("good"): print ("Thats nice") else print("stfu") 
Python :: how to check what version of pygame you have instaled 
Python :: print fps in while loop python 
Python :: reportlab line thickness 
Python :: pltoly boxlpot 
Python :: monoamine oxidase inhibitor 
Python :: np.nditer 
Python :: importare un csv in pycharm e pandas 
Python :: Limits the result count to the number specified 
Python :: scrapy get raw html content of selector innerhtml 
Python :: come traferire file python 
Python :: write python command to display your name 
Python :: python text to speech 
Python :: group your data columns by their data types 
Python :: how to form a list from a file in python 
Python :: ggt euklidischer algorithmus python 
Python :: helper for FastAPI Users to create a super user 
Python :: Escala, Translação e Rotação em Vídeos - Python 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =