Pairs Plots - finding errors
generated with https://seaborn.pydata.org/

Pairs Plots - finding errors

during the hackathon in zurich in the Seaborn or statistical data 


---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-158-ce4450531e90> in <module>()
      3 import seaborn as sns
      4 # Create the default pairplot
----> 5 sns.pairplot(frame)

C:\conda3\lib\site-packages\seaborn\axisgrid.py in pairplot(data, hue, hue_order, palette, vars, x_vars, y_vars, kind, diag_kind, markers, size, aspect, dropna, plot_kws, diag_kws, grid_kws)
   2058     if grid.square_grid:
   2059         if diag_kind == "hist":
-> 2060             grid.map_diag(plt.hist, **diag_kws)
   2061         elif diag_kind == "kde":
   2062             diag_kws["legend"] = False

C:\conda3\lib\site-packages\seaborn\axisgrid.py in map_diag(self, func, **kwargs)
   1363                     func(vals, color=color, **kwargs)
   1364                 else:
-> 1365                     func(vals, color=color, histtype="barstacked", **kwargs)
   1366 
   1367             else:

C:\conda3\lib\site-packages\matplotlib\pyplot.py in hist(x, bins, range, density, weights, cumulative, bottom, histtype, align, orientation, rwidth, log, color, label, stacked, normed, hold, data, **kwargs)
   3130                       histtype=histtype, align=align, orientation=orientation,
   3131                       rwidth=rwidth, log=log, color=color, label=label,
-> 3132                       stacked=stacked, normed=normed, data=data, **kwargs)
   3133     finally:
   3134         ax._hold = washold

C:\conda3\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
   1853                         "the Matplotlib list!)" % (label_namer, func.__name__),
   1854                         RuntimeWarning, stacklevel=2)
-> 1855             return func(ax, *args, **kwargs)
   1856 
   1857         inner.__doc__ = _add_data_doc(inner.__doc__,

C:\conda3\lib\site-packages\matplotlib\axes\_axes.py in hist(***failed resolving arguments***)
   6528             # this will automatically overwrite bins,
   6529             # so that each histogram uses the same bins
-> 6530             m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
   6531             m = m.astype(float)  # causes problems later if it's an int
   6532             if mlast is None:

C:\conda3\lib\site-packages\numpy\lib\function_base.py in histogram(a, bins, range, normed, weights, density)
    665     if first_edge > last_edge:
    666         raise ValueError(
--> 667             'max must be larger than min in range parameter.')
    668     if not np.all(np.isfinite([first_edge, last_edge])):
    669         raise ValueError(

ValueError: max must be larger than min in range parameter.


To view or add a comment, sign in

More articles by Dimitry Demin

Others also viewed

Explore content categories