title: Why is .dropna() removing all values from my data?
body: <p>When I run this code it empties my dataframe! For some reason when I uncomment the commands at the end of the code then the code works as I want! Can someone help?</p>
  <pre><code>#Import the Pandas library and Numpy
  import pandas as pd
  import numpy as np
  
  # Your DataFrame
  movies = pd.DataFrame({'name': ['Lord of the Rings', 'When Harry Met Sally', 'Matrix', 'Taken', 'Sleepless in Seattle', 'Crank'],
  'genre': ['Fantasy', 'Romance', 'Sci-Fi', 'Action', 'Romance','Action'],
  'actor': [np.NaN,np.NaN,np.NaN,np.NaN,np.NaN,np.NaN],
  'length':[3.5, 2, 1.45, 2, 1.5, np.NaN],
  'rating': [4, 3, 2, 1, 3, 4]})
  
  print(&quot;Print Original Movies&quot;)
  print(movies); print(&quot;\n&quot;)
  
  # movies = movies.drop(&quot;actor&quot;, axis=1); print(&quot;\n&quot;)
  # print(movies); print(&quot;\n&quot;)
  
  movies = movies.dropna()
  print(movies)
  </code></pre>