title: How to solve KeyError(f"None of [{key}] are in the [{axis_name}]") in this case (Pandas)?
body: <p>I have a CSV file for example like this :</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>name</th>
  <th>email</th>
  <th>physics</th>
  <th>chemistry</th>
  <th>maths</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>Sta</td>
  <td>sta@example.com</td>
  <td>67</td>
  <td>78</td>
  <td>90</td>
  </tr>
  <tr>
  <td>2</td>
  <td>Danny</td>
  <td>dany@example.com</td>
  <td>77</td>
  <td>98</td>
  <td>89</td>
  </tr>
  <tr>
  <td>3</td>
  <td>Elle</td>
  <td>elle@example.com</td>
  <td>77</td>
  <td>67</td>
  <td>90</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Now I want to output a new CSV file using pandas which has new columns too for example like this :</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>id</th>
  <th>name</th>
  <th>grade</th>
  <th>address</th>
  <th>physics</th>
  <th>chemistry</th>
  <th>attendance</th>
  <th>maths</th>
  <th>total</th>
  </tr>
  </thead>
  </table>
  </div>
  <p>I want to create new columns in random places and I want to place the value as blank in the new columns.</p>
  <p>I have tried using :</p>
  <pre><code>import pandas as pd
  
  df = pd.read_csv(&quot;sample.csv&quot;)
  final_df = df.loc[['id','name','grade','address','physics','chemistry','attendance','maths','total']]
  </code></pre>
  <p>When I did this I got an error :</p>
  <pre><code>KeyError(f“None of [{key}] are in the [{axis_name}]”)
  </code></pre>
  <p>Any ideas or suggestions to arrange this.</p>