{"provider_url":"https://hatena.blog","version":"1.0","title":" \u3010python3, numpy\u3011array\u306e\u6587\u5b57\u5217\u3092\u5225\u306e\u578b\u306b\u5909\u63db\u3059\u308b + csv\u3092\u8aad\u307f\u8fbc\u307f","description":"python - How to convert an array of strings to an array of floats in numpy? - Stack Overflow \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 import numpy as np fname=\"hoge.txt\" a = np.loadtxt(fname, unpack=True, dtype=str) y = a[\"x\"].astype(np.float) >|python| hoge.txt\u3068\u3044\u3046\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080 \u3053\u306e\u3068\u304ddtype\u3067\u6307\u5b9a\u3067\u304d\u308b\u578b\u306f1\u7a2e\u985e\u306e\u307f\u3001\u4f55\u3082\u3057\u306a\u3044\u3068float64\u306b\u306a\u308b\u306f\u305a \u3053\u308c\u3092\u6587\u5b57\u5217\u306b\u3059\u308b\u3068\u3001a\u2026","url":"https://coffee-guhaw.hateblo.jp/entry/2025/06/24/000000","type":"rich","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","published":"2025-06-24 00:00:00","width":"100%","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","height":"190","blog_url":"https://coffee-guhaw.hateblo.jp/","author_name":"coffee_kabu","categories":["python","numpy"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2025%2F06%2F24%2F000000\" title=\" \u3010python3, numpy\u3011array\u306e\u6587\u5b57\u5217\u3092\u5225\u306e\u578b\u306b\u5909\u63db\u3059\u308b + csv\u3092\u8aad\u307f\u8fbc\u307f - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null}