-
-
Couldn't load subscription status.
- Fork 19.2k
Closed
Labels
Dtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementPerformanceMemory or execution speed performanceMemory or execution speed performanceStringsString extension data type and string dataString extension data type and string data
Description
This is more of a question than an issue:
why does Pandas use object type rather than the native fixed length numpy strings?
For example:
In [24]: np.array(["foo", "baz"])
Out[24]:
array(['foo', 'baz'],
dtype='|S3')
but:
In [29]: pd.DataFrame({"a":np.array(["foo", "baz"])}).dtypes
Out[29]:
a object
dtype: object
frol, rvernica, jesse-git and rth
Metadata
Metadata
Assignees
Labels
Dtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsEnhancementPerformanceMemory or execution speed performanceMemory or execution speed performanceStringsString extension data type and string dataString extension data type and string data