selecao = (valor >= limite_inferior) & (valor <= limite_superior)
dados_new = dados[selecao]
ValueError Traceback (most recent call last) in ----> 1 selecao = (valor >= limite_inferior) & (valor <= limite_superior) 2 dados_new = dados[selecao]
~\anaconda3\envs\alura_pandas\lib\site-packages\pandas\core\ops.py in wrapper(self, other, axis) 877 878 with np.errstate(all='ignore'): --> 879 res = na_op(values, other) 880 if is_scalar(res): 881 raise TypeError('Could not compare {typ} type with Series'
~\anaconda3\envs\alura_pandas\lib\site-packages\pandas\core\ops.py in na_op(x, y) 814 try: 815 with np.errstate(all='ignore'): --> 816 result = getattr(x, name)(y) 817 if result is NotImplemented: 818 raise TypeError("invalid type comparison")
ValueError: operands could not be broadcast together with shapes (21826,) (2,)