title: IOError: [Errno 13] Permission denied: while exporting to .csv
body: <p>I'm just getting this error while trying to export data to a .csv format.</p>
  
  <p>I've tried to run the application as administrator but it did not work.</p>
  
  <p>Please help a rookie!</p>
  
  <p>Here's the code:</p>
  
  <pre><code>import pandas as pd
  tickers = ['AAPL', 'MSFT', 'XOM', 'BP']
  portfolio_selection = pd.DataFrame()
  for t in tickers:
       portfolio_selection = wb.DataReader(tickers, 'google', start = '2005-1-1')['Close']
  portfolio_selection
  portfolio_selection.to_csv('C:\Users\PC\Documents\Lucas\Random_Folder')
  </code></pre>
  
  <p>Here's what i've got</p>
  
  <pre><code>--------------------------------------------------------------------------
  IOError                                   Traceback (most recent call last)
  &lt;ipython-input-6-0b1cec90f143&gt; in &lt;module&gt;()
  ----&gt; 1 portfolio_selection.to_csv('C:\Users\PC\Documents\Lucas\Random_Folder')
  
  C:\Users\Pichau\Anaconda2\lib\site-packages\pandas\core\frame.pyc in to_csv(self, path_or_buf, sep, na_rep, float_format, columns, header, index, index_label, mode, encoding, compression, quoting, quotechar, line_terminator, chunksize, tupleize_cols, date_format, doublequote, escapechar, decimal)
     1411                                      doublequote=doublequote,
     1412                                      escapechar=escapechar, decimal=decimal)
  -&gt; 1413         formatter.save()
     1414 
     1415         if path_or_buf is None:
  
  C:\Users\Pichau\Anaconda2\lib\site-packages\pandas\io\formats\format.pyc in save(self)
     1566             f, handles = _get_handle(self.path_or_buf, self.mode,
     1567                                      encoding=self.encoding,
  -&gt; 1568                                      compression=self.compression)
     1569             close = True
     1570 
  
  C:\Users\Pichau\Anaconda2\lib\site-packages\pandas\io\common.pyc in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text)
      374         if compat.PY2:
      375             # Python 2
  --&gt; 376             f = open(path_or_buf, mode)
      377         elif encoding:
      378             # Python 3 and encoding
  
   IOError: [Errno 13] Permission denied: 'C:\Users\PC\Documents\Lucas\Random_Folder'
  </code></pre>