title: Replacing Pandas or Numpy Nan with a None to use with MysqlDB
body: <p>I am trying to write a Pandas dataframe (or can use a numpy array) to a mysql database using MysqlDB . MysqlDB doesn't seem understand 'nan' and my database throws out an error saying nan is not in the field list. I need to find a way to convert the 'nan' into a NoneType.</p>
  
  <p>Any ideas? </p>