title: Why does Pandas throw 'NoneType' object is not callable during plotting?
body: <p>I have Pandas series:</p>
  <pre><code>results
  Out[75]: 
  job_id            
  294     PASSED        115
          FAILED          1
          FIXED           0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  295     PASSED        191
          FAILED          0
          FIXED           0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  296     PASSED        191
          REGRESSION      1
          FAILED          0
          FIXED           0
          Failed          0
          SKIPPED         0
  297     PASSED        268
          SKIPPED        11
          FAILED          7
          FIXED           1
          REGRESSION      1
          Failed          0
  298     PASSED        189
          REGRESSION      2
          FAILED          1
          FIXED           1
          Failed          0
          SKIPPED         0
  299     PASSED        266
          SKIPPED        11
          FAILED          9
          FIXED           2
          REGRESSION      2
          Failed          0
  303     PASSED        190
          FIXED           2
          FAILED          0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  305     PASSED        192
          FAILED          0
          FIXED           0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  307     PASSED        192
          FAILED          0
          FIXED           0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  309     PASSED        192
          FAILED          0
          FIXED           0
          Failed          0
          REGRESSION      0
          SKIPPED         0
  Name: result, dtype: int64
  </code></pre>
  <p>When I try to plot it:</p>
  <pre><code>results.plot(kind=&quot;line&quot;)
  </code></pre>
  <p>I receive</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 384, in __new__
      dtype = numeric.dtype(dtype)
  TypeError: 'NoneType' object is not callable
  During handling of the above exception, another exception occurred:
  Traceback (most recent call last):
    File &quot;C:\Python310\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3251, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-78-2d999262e4ca&gt;&quot;, line 1, in &lt;module&gt;
      results.plot(kind=&quot;line&quot;)
    File &quot;C:\Python310\lib\site-packages\pandas\plotting\_core.py&quot;, line 972, in __call__
      return plot_backend.plot(data, kind=kind, **kwargs)
    File &quot;C:\Python310\lib\site-packages\pandas\plotting\_matplotlib\__init__.py&quot;, line 71, in plot
      plot_obj.generate()
    File &quot;C:\Python310\lib\site-packages\pandas\plotting\_matplotlib\core.py&quot;, line 294, in generate
      self._post_plot_logic_common(ax, self.data)
    File &quot;C:\Python310\lib\site-packages\pandas\plotting\_matplotlib\core.py&quot;, line 473, in _post_plot_logic_common
      self._apply_axis_properties(ax.xaxis, rot=self.rot, fontsize=self.fontsize)
    File &quot;C:\Python310\lib\site-packages\pandas\plotting\_matplotlib\core.py&quot;, line 561, in _apply_axis_properties
      labels = axis.get_majorticklabels() + axis.get_minorticklabels()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1201, in get_majorticklabels
      ticks = self.get_major_ticks()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1371, in get_major_ticks
      numticks = len(self.get_majorticklocs())
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1277, in get_majorticklocs
      return self.major.locator()
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 2113, in __call__
      vmin, vmax = self.axis.get_view_interval()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1987, in getter
      return getattr(getattr(self.axes, lim_name), attr_name)
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 781, in viewLim
      self._unstale_viewLim()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 776, in _unstale_viewLim
      self.autoscale_view(**{f&quot;scale{name}&quot;: scale
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 2932, in autoscale_view
      handle_single_axis(
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 2895, in handle_single_axis
      x0, x1 = locator.nonsingular(x0, x1)
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 1654, in nonsingular
      return mtransforms.nonsingular(v0, v1, expander=.05)
    File &quot;C:\Python310\lib\site-packages\matplotlib\transforms.py&quot;, line 2880, in nonsingular
      if maxabsvalue &lt; (1e6 / tiny) * np.finfo(float).tiny:
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 387, in __new__
      dtype = numeric.dtype(type(dtype))
  TypeError: 'NoneType' object is not callable
  Exception in Tkinter callback
  Traceback (most recent call last):
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 384, in __new__
      dtype = numeric.dtype(dtype)
  TypeError: 'NoneType' object is not callable
  During handling of the above exception, another exception occurred:
  Traceback (most recent call last):
    File &quot;C:\Python310\lib\tkinter\__init__.py&quot;, line 1921, in __call__
      return self.func(*args)
    File &quot;C:\Python310\lib\tkinter\__init__.py&quot;, line 839, in callit
      func(*args)
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\_backend_tk.py&quot;, line 251, in idle_draw
      self.draw()
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\backend_tkagg.py&quot;, line 9, in draw
      super().draw()
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\backend_agg.py&quot;, line 436, in draw
      self.figure.draw(self.renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 73, in draw_wrapper
      result = draw(artist, renderer, *args, **kwargs)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\figure.py&quot;, line 2810, in draw
      mimage._draw_list_compositing_images(
    File &quot;C:\Python310\lib\site-packages\matplotlib\image.py&quot;, line 132, in _draw_list_compositing_images
      a.draw(renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 3082, in draw
      mimage._draw_list_compositing_images(
    File &quot;C:\Python310\lib\site-packages\matplotlib\image.py&quot;, line 132, in _draw_list_compositing_images
      a.draw(renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1158, in draw
      ticks_to_draw = self._update_ticks()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1045, in _update_ticks
      major_locs = self.get_majorticklocs()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1277, in get_majorticklocs
      return self.major.locator()
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 2114, in __call__
      return self.tick_values(vmin, vmax)
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 2120, in tick_values
      vmin, vmax = mtransforms.nonsingular(
    File &quot;C:\Python310\lib\site-packages\matplotlib\transforms.py&quot;, line 2880, in nonsingular
      if maxabsvalue &lt; (1e6 / tiny) * np.finfo(float).tiny:
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 387, in __new__
      dtype = numeric.dtype(type(dtype))
  TypeError: 'NoneType' object is not callable
  Exception in Tkinter callback
  Traceback (most recent call last):
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 384, in __new__
      dtype = numeric.dtype(dtype)
  TypeError: 'NoneType' object is not callable
  During handling of the above exception, another exception occurred:
  Traceback (most recent call last):
    File &quot;C:\Python310\lib\tkinter\__init__.py&quot;, line 1921, in __call__
      return self.func(*args)
    File &quot;C:\Python310\lib\tkinter\__init__.py&quot;, line 839, in callit
      func(*args)
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\_backend_tk.py&quot;, line 251, in idle_draw
      self.draw()
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\backend_tkagg.py&quot;, line 9, in draw
      super().draw()
    File &quot;C:\Python310\lib\site-packages\matplotlib\backends\backend_agg.py&quot;, line 436, in draw
      self.figure.draw(self.renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 73, in draw_wrapper
      result = draw(artist, renderer, *args, **kwargs)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\figure.py&quot;, line 2810, in draw
      mimage._draw_list_compositing_images(
    File &quot;C:\Python310\lib\site-packages\matplotlib\image.py&quot;, line 132, in _draw_list_compositing_images
      a.draw(renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\axes\_base.py&quot;, line 3082, in draw
      mimage._draw_list_compositing_images(
    File &quot;C:\Python310\lib\site-packages\matplotlib\image.py&quot;, line 132, in _draw_list_compositing_images
      a.draw(renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\artist.py&quot;, line 50, in draw_wrapper
      return draw(artist, renderer)
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1158, in draw
      ticks_to_draw = self._update_ticks()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1045, in _update_ticks
      major_locs = self.get_majorticklocs()
    File &quot;C:\Python310\lib\site-packages\matplotlib\axis.py&quot;, line 1277, in get_majorticklocs
      return self.major.locator()
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 2114, in __call__
      return self.tick_values(vmin, vmax)
    File &quot;C:\Python310\lib\site-packages\matplotlib\ticker.py&quot;, line 2120, in tick_values
      vmin, vmax = mtransforms.nonsingular(
    File &quot;C:\Python310\lib\site-packages\matplotlib\transforms.py&quot;, line 2880, in nonsingular
      if maxabsvalue &lt; (1e6 / tiny) * np.finfo(float).tiny:
    File &quot;C:\Python310\lib\site-packages\numpy\core\getlimits.py&quot;, line 387, in __new__
      dtype = numeric.dtype(type(dtype))
  TypeError: 'NoneType' object is not callable
  
  </code></pre>
  <p>I want to plot this to compare jobs execution with the stacked bar to visualize any problems with results.</p>