Boa noite,
Ao executar esse código:
import pandas as pd
carros = {'Jetta Variant','Passat','Crossfox'}
print(pd.Series(carros))
eu recebo este retorno:
Traceback (most recent call last):
File "C:\Users\Paulo\PycharmProjects\DataScience_Alura\pandas_1.py", line 5, in <module>
print(pd.Series(carros))
File "C:\Users\Paulo\PycharmProjects\DataScience_Alura\venv\lib\site-packages\pandas\core\series.py", line 451, in __init__
data = sanitize_array(data, index, dtype, copy)
File "C:\Users\Paulo\PycharmProjects\DataScience_Alura\venv\lib\site-packages\pandas\core\construction.py", line 581, in sanitize_array
raise TypeError(f"'{type(data).__name__}' type is unordered")
TypeError: 'set' type is unordered
Alguém pode me ajudar?