title: pandas to csv TypeError: get_handle() got an unexpected keyword argument 'errors'
body: <p>I had big table which I sliced to many smaller tables based on their dates:</p>
  <pre><code>
  dfs={}
  for fecha in fechas:
      dfs[fecha]=df[df['date']==fecha].set_index('Hour')
  #now I can acess the tables like this:
  dfs['2019-06-23'].head()
  </code></pre>
  <p>I have done some modifictions to the dfs['2019-06-23'] specific table and now I would like to save it on my computer. I have tried to do this in two ways:</p>
  <pre><code>#first try:
  dfs['2019-06-23'].to_csv('specific/path/file.csv')
  
  #second try:
  test=dfs['2019-06-23']
  test.to_csv('test.csv')
  </code></pre>
  <p>both of them raised this error:</p>
  <blockquote>
  <p>TypeError: get_handle() got an unexpected keyword argument 'errors'</p>
  </blockquote>
  <p>I don't know why I get this error and haven't find any reason for that. I have saved many files this way but never had that before.</p>
  <p><strong>My goal: to be able to save this dataframe after my modification as csv</strong></p>