{"version":"1.0","type":"rich","width":"100%","published":"2019-12-18 23:31:06","height":"190","blog_title":"\u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18","author_name":"ryuichi1208","provider_name":"Hatena Blog","description":"\u3081\u3063\u3061\u3083\u30cf\u30de\u3063\u305f pandas.DataFrame\u306f\u5217\u3054\u3068\u306b\u578bdtype\u304c\u8a2d\u5b9a\u3055\u308c\u308b\u3002 astype()\u306a\u3093\u304b\u3067\u30ad\u30e3\u30b9\u30c8\u3067\u304d\u305f\u308a\u3082\u3059\u308b\u3002 df_object = pd.read_csv('hoge.csv',index_col=0, dtype=object) print(df_object) # a b c d # 1 001 100 x # 2 020 NaN y # 3 300 300 z print(df_object.dtypes) # a object # b object # c object # d object # dtype: object print(df_object.\u2026","url":"https://ryuichi1208.hateblo.jp/entry/2019/12/18/233106","blog_url":"https://ryuichi1208.hateblo.jp/","author_url":"https://blog.hatena.ne.jp/ryuichi1208/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2019%2F12%2F18%2F233106\" title=\" DataFrame\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306b\u3001dtype\u3092\u6307\u5b9a - \u5730\u65b9\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u5b66\u7fd2\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"title":" DataFrame\u3092\u8aad\u307f\u8fbc\u3080\u3068\u304d\u306b\u3001dtype\u3092\u6307\u5b9a","categories":[]}