title: Suppress a Warning -python-pandas-colab_notebook
body: <p>I'm trying to normalize a three-digit country code column in a pandas df. I found a great function called <code>country_converter</code>, and I'am currently running this function on the country column in a very large dataframe. It's returning <strong>thousands</strong> of these warnings because there are <code>NaN</code> values present in the column.</p>
  
  <blockquote>
    <p>WARNING:root:nan not found in ISO3</p>
  </blockquote>
  
  <p>I'm looking for two things:</p>
  
  <ol>
  <li>to suppress the nan warnings specifically</li>
  <li>to speed up the processing time of this function (my thought is suppressing the warnings should speed up the process; however, if you have any suggestions about trying something different with my code that would be great!</li>
  </ol>
  
  <p>I've tried all variations of the name, but nothing seems to work so I think I'm missing something...</p>
  
  <pre><code>import country_converter as coco
  import pandas as pd
  import numpy as np
  import warnings
  
  warnings.filterwarnings("ignore", message= "nan not found in ISO3")
  warnings.filterwarnings("ignore", message= "root:nan not found in ISO3")
  warnings.filterwarnings("ignore", message= "WARNING:root:nan not found in ISO3")
  
  test = pd.DataFrame({"code":[np.nan, 'XXX', 'USA', 'GBR', "GBR",'SWE/n', "123", "abs", "ABCC", "ABC", np.nan, np.nan]})
  
  
  test['code_convert']= test["code"].apply(lambda x: coco.convert(names= x, to='ISO3', not_found= np.NaN))
  </code></pre>
  
  <p>Expected to see no more warnings with the <code>nan</code> value.</p>