selecao = dados['Tipo'].isin(residencial)
dados_residencial = dados[selecao]
Error: /usr/local/lib/python3.6/dist-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]
2 frames
/usr/local/lib/python3.6/dist-packages/pandas/core/indexing.py in check_bool_indexer(ax, key) 2484 mask = isna(result._values) 2485 if mask.any(): -> 2486 raise IndexingError('Unalignable boolean Series provided as ' 2487 'indexer (index of the boolean Series and of ' 2488 '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