title: Temp file in Python doesn't delete itself?
body: <p>I have a dataframe df and I want to write it into a csv file and load back:</p>
  <pre><code>import pandas as pd
  import tempfile
  with tempfile.NamedTemporaryFile() as temp:
      df.to_csv(temp.name + '.csv')
      data = pd.read_csv(temp.name + '.csv')
  </code></pre>
  <p>For some reason I do see the tempfile in my tmp/ directory.
  Please advise what should I do to eliminate it when I finish with the <code>with</code> scope?</p>