title: How can I download a pandas Dataframe in Google Colab?
body: <p>I have been stuck on how to download a pandas DataFrame into my local disk (or onto Google Drive) after creating it in Google Colab. I have tried converting it to bytes, a string (using pd.to_string), a dict (pd.to_dict), but nothing seems to work.</p>
  
  <p>Additionally, I've looked at using the drive.CreateFile method as explained in the intro Colab Code and as specified here: <a href="https://stackoverflow.com/questions/48774285/how-to-download-file-created-in-colaboratory-workspace">How to download file created in Colaboratory workspace?</a>, but I'm not sure how to apply this to pandas.</p>
  
  <p>Any help is appreciated - thanks!</p>