title: How to ignore SettingWithCopyWarning using warnings.simplefilter()?
body: <p><strong>The question:</strong></p>
  
  <p>Can I ignore or prevent the <code>SettingWithCopyWarning</code> to be printed to the console using <code>warnings.simplefilter()</code>?</p>
  
  <p><strong>The details:</strong></p>
  
  <p>I'm running a few data cleaning routines using pandas, and those are executed in the simplest of ways using a <a href="https://stackoverflow.com/questions/4571244/creating-a-bat-file-for-python-script">batch file</a>. One of the lines in my Python script triggers the <code>SettingWithCopyWarning</code> and is printed to the console. But it's also being echoed in the command prompt:</p>
  
  <p><a href="https://i.stack.imgur.com/JEH5T.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JEH5T.png" alt="enter image description here"></a></p>
  
  <p>Aside from sorting out the <a href="https://stackoverflow.com/questions/45170312/pandas-settingwithcopywarning">source of the error</a>, is there any way I can prevent the error message from being printed to the prompt like I can with FutureWarnings like <code>warnings.simplefilter(action = "ignore", category = FutureWarning)</code>?</p>