title: How to export the result of a boxplot to a csv file with pandas?
body: <p>I need to export the result of a boxplot output to a CSV file, but I'm not finding a way to do it.</p>
  
  <pre><code>boxplot = df.boxplot(by='Time', 
                   column='Duration',
                   grid=False,
                   figsize=(16,10))
  
  boxplot.to_csv('BoxplotResult.csv')
  </code></pre>
  
  <p>In the above example, I get the error: AttributeError: 'AxesSubplot' object has no attribute 'to_csv'.<br>
  Which I understand that the result of the boxplot operation is a AxesSubplot and AxesSubplot does not have to_csv method in it. </p>
  
  <p>Is there any way to export the results of a boxplot to a CSV file?</p>