Код: Выделить всё
transaction_df['Country'] = transaction_df['Country'].astype(str)
Независимо от того, что Да, мои результаты, когда я пытаюсьтранзакцию_df.dtypes, всегда такие, как вы видите ниже.
Что я делаю неправильно?
Код: Выделить всё
CustomerID int64
InvoiceNo int64
AmountSpent float64
InvoiceDate datetime64[ns]
Country object
dtype: object
Новое всему этому. спасибо
Подробнее здесь: https://stackoverflow.com/questions/790 ... r-notebook