- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 19.2k
 
Closed
Labels
API DesignDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
pandas converts all strings to 'O' columns.
For consistency and writing to files it would be good if pandas respects numpy fixed length strings.
import numpy as np
import pandas as pd
df = pd.DataFrame({'date': np.array(['2015-10-10', '2015-01-01'], dtype='S10')})
print(df.date.dtype)
Results in dtype('O') and not dtype('S10')
jesse-git and aha79
Metadata
Metadata
Assignees
Labels
API DesignDtype ConversionsUnexpected or buggy dtype conversionsUnexpected or buggy dtype conversionsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action