Preciso de uma ajuda. Ao tentar rodar o código para criar a variável 'selecao', obtive o seguinte erro:
ValueError Traceback (most recent call last) in ----> 1 selecao = (valor >=limite_inferior) & (valor <= limite_superior) 2 dados_new = dados[selecao]
D:\Users\55189\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'
D:\Users\55189\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,)