title: Reshift Nan values column dataframe if match with list
body: <p>I want to rearrange column name values that contains Nan.</p>
  <p>Condition that i want is, if string in list match with column[1], it will only reshift column values that contain row under matched string, so its my dataframe before shifted.</p>
  <pre><code>[in] : df
  [Out]:
  
     column1     column2    column3 
  0  aba abab    800.0      900.0
  1  aaa acc     900.0      60.0 
  2  bba jka     809.0      400.0
  3  fff yy      521.0      490.0  
  4  hkm asa j   290.0      321.0    
  5  daa rr oo   88.0       Nan
  6  jtuy ww ddw Nan        600.0
  8  bkam ftf    Nan        Nan   
  9  fgqefc      Nan        Nan
  10 daas we fg  Nan        Nan   
  11 judv mm mk  Nan        Nan   
  12 hus gg hhh  Nan        Nan 
  </code></pre>
  <p>and here my list</p>
  <pre><code>my_list= ['bba jka', 'hkm asa j']
  </code></pre>
  <p>so it my dataframe that i wanted, which name is df1</p>
  <pre><code>column1     column2    column3 
  0  aba abab    800.0      900.0
  1  aaa acc     900.0      60.0 
  2  bba jka     Nan        Nan
  3  fff yy      809.0      400.0  
  4  hkm asa j   Nan        Nan    
  5  daa rr oo   521.0      490.0
  6  jtuy ww ddw 290.0      321.0
  8  bkam ftf    88.0       Nan   
  9  fgqefc      Nan        600.0
  10 daas we fg  Nan        Nan   
  11 judv mm mk  Nan        Nan   
  12 hus gg hhh  Nan        Nan 
  </code></pre>
  <p>I dont understand how to achieve df1 with shift and match, anyone can solve it?</p>