Код: Выделить всё
message length class
hello, Come here 16 A
hi, how are you 15 A
what is it 10 B
maybe tomorrow 14 A
Код: Выделить всё
messages.dtypes
Код: Выделить всё
class object
message object
Length int64
dtype: object
Код: Выделить всё
messages['message'] = messages['message'].astype(str)
print messages.dtypes
Код: Выделить всё
class object
message object
Length int64
dtype: object
Python версии 2.7.9 в Windows 10
Pandas версии 0.15.2
Подробнее здесь: https://stackoverflow.com/questions/321 ... -dataframe