title: Seaborn ValueError: zero-size array to reduction operation minimum which has no identity
body: <p>I ran this scatter plot seaborn example from their own <a href="https://seaborn.pydata.org/generated/seaborn.scatterplot.html" rel="noreferrer">website</a>,</p>
  <pre><code>import seaborn as sns; sns.set()
  import matplotlib.pyplot as plt
  tips = sns.load_dataset(&quot;tips&quot;)
  
  # this works:
  ax = sns.scatterplot(x=&quot;total_bill&quot;, y=&quot;tip&quot;, data=tips)
  
  # But adding 'hue' gives the error below:
  ax = sns.scatterplot(x=&quot;total_bill&quot;, y=&quot;tip&quot;, hue=&quot;time&quot;, data=tips)
  </code></pre>
  <p>This error:</p>
  <pre class="lang-py prettyprint-override"><code>---------------------------------------------------------------------------
  ValueError                                Traceback (most recent call last)
  e:\Anaconda3\lib\site-packages\IPython\core\formatters.py in __call__(self, obj)
      339                 pass
      340             else:
  --&gt; 341                 return printer(obj)
      342             # Finally look for special method names
      343             method = get_real_method(obj, self.print_method)
  
  e:\Anaconda3\lib\site-packages\IPython\core\pylabtools.py in &lt;lambda&gt;(fig)
      246 
      247     if 'png' in formats:
  --&gt; 248         png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))
      249     if 'retina' in formats or 'png2x' in formats:
      250         png_formatter.for_type(Figure, lambda fig: retina_figure(fig, **kwargs))
  
  e:\Anaconda3\lib\site-packages\IPython\core\pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs)
      130         FigureCanvasBase(fig)
      131 
  --&gt; 132     fig.canvas.print_figure(bytes_io, **kw)
      133     data = bytes_io.getvalue()
      134     if fmt == 'svg':
  
  e:\Anaconda3\lib\site-packages\matplotlib\backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, pad_inches, bbox_extra_artists, backend, **kwargs)
     2191                            else suppress())
     2192                     with ctx:
  -&gt; 2193                         self.figure.draw(renderer)
     2194 
     2195                     bbox_inches = self.figure.get_tightbbox(
  
  e:\Anaconda3\lib\site-packages\matplotlib\artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
       39                 renderer.start_filter()
       40 
  ---&gt; 41             return draw(artist, renderer, *args, **kwargs)
       42         finally:
       43             if artist.get_agg_filter() is not None:
  
  e:\Anaconda3\lib\site-packages\matplotlib\figure.py in draw(self, renderer)
     1861 
     1862             self.patch.draw(renderer)
  -&gt; 1863             mimage._draw_list_compositing_images(
     1864                 renderer, self, artists, self.suppressComposite)
     1865 
  
  e:\Anaconda3\lib\site-packages\matplotlib\image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
      129     if not_composite or not has_images:
      130         for a in artists:
  --&gt; 131             a.draw(renderer)
      132     else:
      133         # Composite any adjacent images together
  
  e:\Anaconda3\lib\site-packages\matplotlib\artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
       39                 renderer.start_filter()
       40 
  ---&gt; 41             return draw(artist, renderer, *args, **kwargs)
       42         finally:
       43             if artist.get_agg_filter() is not None:
  
  e:\Anaconda3\lib\site-packages\matplotlib\cbook\deprecation.py in wrapper(*inner_args, **inner_kwargs)
      409                          else deprecation_addendum,
      410                 **kwargs)
  --&gt; 411         return func(*inner_args, **inner_kwargs)
      412 
      413     return wrapper
  
  e:\Anaconda3\lib\site-packages\matplotlib\axes\_base.py in draw(self, renderer, inframe)
     2746             renderer.stop_rasterizing()
     2747 
  -&gt; 2748         mimage._draw_list_compositing_images(renderer, self, artists)
     2749 
     2750         renderer.close_group('axes')
  
  e:\Anaconda3\lib\site-packages\matplotlib\image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite)
      129     if not_composite or not has_images:
      130         for a in artists:
  --&gt; 131             a.draw(renderer)
      132     else:
      133         # Composite any adjacent images together
  
  e:\Anaconda3\lib\site-packages\matplotlib\artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
       39                 renderer.start_filter()
       40 
  ---&gt; 41             return draw(artist, renderer, *args, **kwargs)
       42         finally:
       43             if artist.get_agg_filter() is not None:
  
  e:\Anaconda3\lib\site-packages\matplotlib\collections.py in draw(self, renderer)
      929     def draw(self, renderer):
      930         self.set_sizes(self._sizes, self.figure.dpi)
  --&gt; 931         Collection.draw(self, renderer)
      932 
      933 
  
  e:\Anaconda3\lib\site-packages\matplotlib\artist.py in draw_wrapper(artist, renderer, *args, **kwargs)
       39                 renderer.start_filter()
       40 
  ---&gt; 41             return draw(artist, renderer, *args, **kwargs)
       42         finally:
       43             if artist.get_agg_filter() is not None:
  
  e:\Anaconda3\lib\site-packages\matplotlib\collections.py in draw(self, renderer)
      383             else:
      384                 combined_transform = transform
  --&gt; 385             extents = paths[0].get_extents(combined_transform)
      386             if (extents.width &lt; self.figure.bbox.width
      387                     and extents.height &lt; self.figure.bbox.height):
  
  e:\Anaconda3\lib\site-packages\matplotlib\path.py in get_extents(self, transform, **kwargs)
      601                 xys.append(curve([0, *dzeros, 1]))
      602             xys = np.concatenate(xys)
  --&gt; 603         return Bbox([xys.min(axis=0), xys.max(axis=0)])
      604 
      605     def intersects_path(self, other, filled=True):
  
  e:\Anaconda3\lib\site-packages\numpy\core\_methods.py in _amin(a, axis, out, keepdims, initial, where)
       41 def _amin(a, axis=None, out=None, keepdims=False,
       42           initial=_NoValue, where=True):
  ---&gt; 43     return umr_minimum(a, axis, None, out, keepdims, initial, where)
       44 
       45 def _sum(a, axis=None, dtype=None, out=None, keepdims=False,
  
  ValueError: zero-size array to reduction operation minimum which has no identity
  </code></pre>
  <p>Yesterday it did work. However, I ran an update of using <code>conda update --all</code>. Has something changed?</p>
  <p>What's going on?</p>
  <p>I run python on a Linux machine.</p>
  <pre><code>Pandas:  1.1.0.
  Numpy:   1.19.1.
  Seaborn api:  0.10.1.
  </code></pre>