C:\Users\Felippe\Anaconda3\envs\alura\lib\site-packages\ipykernel_launcher.py:1: UserWarning: Boolean Series key will be reindexed to match DataFrame index.
"""Entry point for launching an IPython kernel.
IndexingError Traceback (most recent call last) in ----> 1 dados_residencial = dados[selecao]
~\Anaconda3\envs\alura\lib\site-packages\pandas\core\frame.py in getitem(self, key) 2789 # Do we have a (boolean) 1d indexer? 2790 if com.is_bool_indexer(key): -> 2791 return self.getitembool_array(key) 2792 2793 # We are left with two options: a single key, and a collection of keys,
~\Anaconda3\envs\alura\lib\site-packages\pandas\core\frame.py in getitembool_array(self, key) 2841 # check_bool_indexer will throw exception if Series key cannot 2842 # be reindexed to match DataFrame rows -> 2843 key = check_bool_indexer(self.index, key) 2844 indexer = key.nonzero()[0] 2845 return self.takewith_is_copy(indexer, axis=0)
~\Anaconda3\envs\alura\lib\site-packages\pandas\core\indexing.py in check_bool_indexer(index, key) 2316 if mask.any(): 2317 raise IndexingError( -> 2318 "Unalignable boolean Series provided as " 2319 "indexer (index of the boolean Series and of " 2320 "the indexed object do not match)."
IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).
insira seu código aqui
dados_residencial = selecao = dados['Tipo'].isin(residencial).head(10) //// dados_residencial = dados[selecao] quando crio essa variavel da esse erro