title: How to resolve TypeError: 'No Numeric Data to Plot', when numeric data exists in Python
body: <p>I have the following dataframe from which I want to create a line plot for Reputation vs Views, but although both data types for the 2 columns show that they are integers I get an error. Please suggest me how to rectify it.</p>
  <p><strong>DataFrame</strong> (Original has many more rows and columns)</p>
  <pre><code>Id  Reputation  Views   UpVotes DownVotes   AccountId   ProfileImageUrl
  -1  1               0   21001   27468             -1    NaN
   1  21228       25360   1052    90             36500    NaN
  </code></pre>
  <p><strong>Code for Line Plot</strong></p>
  <pre><code>df_users.plot(kind='line',x='Reputation',y='Views')
  </code></pre>
  <p><strong>Error</strong></p>
  <pre><code>&gt; TypeError                                 Traceback (most recent call
  &gt; last) &lt;ipython-input-16-bbf2a427a767&gt; in &lt;module&gt;()
  &gt; ----&gt; 1 df_users.plot(kind='line',x='Reputation',y='Views')
  &gt; 
  &gt; 3 frames
  &gt; /usr/local/lib/python3.6/dist-packages/pandas/plotting/_matplotlib/core.py
  &gt; in _compute_plot_data(self)
  &gt;     408         # no non-numeric frames or series allowed
  &gt;     409         if is_empty:
  &gt; --&gt; 410             raise TypeError(&quot;no numeric data to plot&quot;)
  &gt;     411 
  &gt;     412         # GH25587: cast ExtensionArray of pandas (IntegerArray, etc.) to
  &gt; 
  &gt; TypeError: no numeric data to plot
  </code></pre>