When I look the pandas column type, when I placed strings inside, the dtype returned was object
. My dataframe will be read-only, it means that I don't mind if the type is a s(size)
. And I see on this question that when the type of numpy array is object it loses speed...
And it made me come to my doubt:
- When the dtype of a pandas Series is object, do I lose speed?
- And if I lose, how can I avoid this?
- Is there any way to make a series have a predetermined size, like
s256
?