ValueError                                Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in quantile(self, qs, interpolation, axis, mgr)
   1621                     result = _nanpercentile(values, np.array(qs) * 100,
-> 1622                                             axis=axis, **kw)
   1623                 except ValueError:

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in _nanpercentile(values, q, axis, **kw)
   1601             else:
-> 1602                 return np.percentile(values, q, axis=axis, **kw)
   1603 

<__array_function__ internals> in percentile(*args, **kwargs)

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in percentile(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3732     return _quantile_unchecked(
-> 3733         a, q, axis, out, overwrite_input, interpolation, keepdims)
   3734 

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _quantile_unchecked(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3852                     overwrite_input=overwrite_input,
-> 3853                     interpolation=interpolation)
   3854     if keepdims:

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _ureduce(a, func, **kwargs)
   3428 
-> 3429     r = func(a, **kwargs)
   3430     return r, keepdim

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _quantile_ureduce_func(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3953 
-> 3954         ap.partition(concatenate((indices_below, indices_above)), axis=axis)
   3955 

/usr/local/lib/python3.6/dist-packages/pandas/core/ops.py in wrapper(self, other, axis)
    835                 msg = &#039;Can only compare identically-labeled Series objects&#039;
--> 836                 raise ValueError(msg)
    837             return self._constructor(na_op(self.values, other.values),

ValueError: Can only compare identically-labeled Series objects

During handling of the above exception, another exception occurred:

ValueError                                Traceback (most recent call last)
<ipython-input-14-6b0974eb23c6> in <module>
      8 print(boot_mean_diff[:11])
      9 # Calculating a 95% confidence interval from boot_mean_diff 
---> 10 confidence_interval = pd.Series(boot_mean_diff).quantile([0.025, 0.975])
     11 confidence_interval

/usr/local/lib/python3.6/dist-packages/pandas/core/series.py in quantile(self, q, interpolation)
   1443         self._check_percentile(q)
   1444 
-> 1445         result = self._data.quantile(qs=q, interpolation=interpolation)
   1446 
   1447         if is_list_like(q):

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in quantile(self, **kwargs)
   3431 
   3432     def quantile(self, **kwargs):
-> 3433         return self.reduction(&#039;quantile&#039;, **kwargs)
   3434 
   3435     def setitem(self, **kwargs):

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in reduction(self, f, axis, consolidate, transposed, **kwargs)
   3360         for b in self.blocks:
   3361             kwargs[&#039;mgr&#039;] = self
-> 3362             axe, block = getattr(b, f)(axis=axis, **kwargs)
   3363 
   3364             axes.append(axe)

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in quantile(self, qs, interpolation, axis, mgr)
   1625                     # older numpies don&#039;t handle an array for q
   1626                     result = [_nanpercentile(values, q * 100,
-> 1627                                              axis=axis, **kw) for q in qs]
   1628 
   1629                 result = np.array(result, copy=False)

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in <listcomp>(.0)
   1625                     # older numpies don&#039;t handle an array for q
   1626                     result = [_nanpercentile(values, q * 100,
-> 1627                                              axis=axis, **kw) for q in qs]
   1628 
   1629                 result = np.array(result, copy=False)

/usr/local/lib/python3.6/dist-packages/pandas/core/internals.py in _nanpercentile(values, q, axis, **kw)
   1600                     return result
   1601             else:
-> 1602                 return np.percentile(values, q, axis=axis, **kw)
   1603 
   1604         from pandas import Float64Index

<__array_function__ internals> in percentile(*args, **kwargs)

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in percentile(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3731         raise ValueError("Percentiles must be in the range [0, 100]")
   3732     return _quantile_unchecked(
-> 3733         a, q, axis, out, overwrite_input, interpolation, keepdims)
   3734 
   3735 

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _quantile_unchecked(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3851     r, k = _ureduce(a, func=_quantile_ureduce_func, q=q, axis=axis, out=out,
   3852                     overwrite_input=overwrite_input,
-> 3853                     interpolation=interpolation)
   3854     if keepdims:
   3855         return r.reshape(q.shape + k)

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _ureduce(a, func, **kwargs)
   3427         keepdim = (1,) * a.ndim
   3428 
-> 3429     r = func(a, **kwargs)
   3430     return r, keepdim
   3431 

/usr/local/lib/python3.6/dist-packages/numpy/lib/function_base.py in _quantile_ureduce_func(a, q, axis, out, overwrite_input, interpolation, keepdims)
   3952         weights_above.shape = weights_shape
   3953 
-> 3954         ap.partition(concatenate((indices_below, indices_above)), axis=axis)
   3955 
   3956         # ensure axis with q-th is first

/usr/local/lib/python3.6/dist-packages/pandas/core/ops.py in wrapper(self, other, axis)
    834             if not self._indexed_same(other):
    835                 msg = &#039;Can only compare identically-labeled Series objects&#039;
--> 836                 raise ValueError(msg)
    837             return self._constructor(na_op(self.values, other.values),
    838                                      index=self.index, name=name)

ValueError: Can only compare identically-labeled Series objects

Add a code snippet to your website: www.paste.org