Pandas reading csv as string type
Update: this has been fixed: from 0.11.1 you passing str/np.str will be equivalent to using object. Use the object dtype: In [11]: pd.read_csv(‘a’, dtype=object, index_col=0) Out[11]: A B 1A 0.35633069074776547 0.745585398803751 1B 0.20037376323337375 0.013921830784260236 or better yet, just don’t specify a dtype: In [12]: pd.read_csv(‘a’, index_col=0) Out[12]: A B 1A 0.356331 0.745585 1B 0.200374 0.013922 … Read more