title: Oneway Anova of individual rows of Dataframe
body: <p>I am currently trying to run one way ANOVA for each row of my data frame (there are 519 rows, each row represents a different biological taxa and each column a different sample); however I continually get an invalid syntax error, and I believe my error lies in my selection of the rows. I am fairly new to python and pandas, so here's what I have so far, with Subj1 being the name of my dataframe:</p>
  
  <pre><code>for x in range(0,24):
      print(scipy.stats.f_oneway(Subj1.iloc[[x,:],:]))
  </code></pre>
  
  <p>How would I go about iterating through the rows so that I return the anova values for each row?</p>
  
  <p>Thanks in Advance!</p>
  
  <p>Edit: I tried to convert the data frame to values then run the iteration like so to no avail :( :</p>
  
  <pre><code>Subject1Values=Subj1.values
  for x in range(0,24):
      print(scipy.stats.f_oneway(Subj1Values[x]))
  </code></pre>
  
  <p>Edit 2: I tried this but it still is returning (nan,nan) multiple times:</p>
  
  <pre><code>Subj1Values=Subj1.values
  for i in range(0,24):
      print(stats.f_oneway(Subj1Values[[i],[0]],Subj1Values[[i],[1]],Subj1Values[[i],[2]],Subj1Values[[i],[3]],Subj1Values[[i],[4]],Subj1Values[[i],[5]]))
  </code></pre>