title: Is there a way to remove nan from a dictionary filled with data?
body: <p>I have a dictionary that is filled with data from two files I imported, but some of the data comes out as nan. How do I remove the pieces of data with nan?</p>
  
  <p>My code is:</p>
  
  <pre><code>import matplotlib.pyplot as plt 
  from pandas.lib import Timestamp
  import numpy as np   
  from datetime import datetime
  import pandas as pd
  import collections
  
  orangebook = pd.read_csv('C:\Users\WEGWEIS_JAKE\Desktop\Work Programs\Code Files\products2.txt',sep='~', parse_dates=['Approval_Date'])
  specificdrugs=pd.read_csv('C:\Users\WEGWEIS_JAKE\Desktop\Work Programs\Code Files\Drugs.txt',sep=',')
  
  """This is a dictionary that collects data from the .txt file
  This dictionary has a key,value pair for every generic name with its corresponding approval date """
  drugdict={}
  for d in specificdrugs['Generic Name']:
      drugdict.dropna()
      drugdict[d]=orangebook[orangebook.Ingredient==d.upper()]['Approval_Date'].min()
  </code></pre>
  
  <p>What should I add or take away from this code to make sure that there are no key,value pairs in the dictionary with a value of nan?</p>