Fala galera,
Seguindo na aula me deparei com o seguinte erro:
dataSet2.loc[['Passata', 'DS5']]
Resultado:
KeyError: 'Passing list-likes to .loc or [] with any missing labels is no longer supported, see https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#deprecate-loc-reindex-listlike'
In prior versions, using .loc[list-of-labels] would work as long as at least 1 of the keys was found (otherwise it would raise a KeyError). This behavior is deprecated and will show a warning message pointing to this section. The recommended alternative is to use .reindex().
Então acho que o curso poderia atualizar essa parte.
Só não consegui fazer o:
dataset.loc[:, ['Motor', 'Valor']]
Em .reindex()
Não funcionou...