title: Sorting a pandas series
body: <p>I am trying to figure out how to sort the Series generated as a result of a groupby aggregation in a smart way.</p>
  
  <p>I generate an aggregation of my DataFrame like this:</p>
  
  <pre><code>means = df.testColumn.groupby(df.testCategory).mean()
  </code></pre>
  
  <p>This results in a Series. I now try to sort this by value, but get an error:</p>
  
  <pre><code>means.sort()
  ...
  -&gt; Exception: This Series is a view of some other array, to sort in-place you must create a copy
  </code></pre>
  
  <p>I then try creating a copy:</p>
  
  <pre><code>meansCopy = Series(means)
  meansCopy.sort()
  -&gt; Exception: This Series is a view of some other array, to sort in-place you must create a copy
  </code></pre>
  
  <p>How can I get this sort working?</p>