{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20210716/20210716235539.png","published":"2021-07-16 23:58:22","description":"\u4f8b\u984c\u30c7\u30fc\u30bf\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u3067\u304a\u99b4\u67d3\u307f\u306e\u30a2\u30a4\u30ea\u30b9\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u7528\u3044\u307e\u3057\u305f\u3002150\u884c\u00d75\u5217\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3001\u4f8b\u3048\u3070\u3001sepal_length\u3068\u3044\u3046\u5217\uff08\u30ab\u30e9\u30e0\uff09\u306b\u5bfe\u3057\u3066\u30015, 5.5, 6\u306e\u5024\u3067\u3042\u308b\u884c\u3092\u5168\u3066\u62bd\u51fa\u3057\u305f\u3044\u5834\u5408\u306b\u9069\u7528\u3057\u3001\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30ea\u30b9\u30c8\u306e\u76f4\u524d\u306b@\u30de\u30fc\u30af\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u30ea\u30b9\u30c8\u3068\u8a8d\u8b58\u3059\u308b\u3053\u3068\u304c\u30dd\u30a4\u30f3\u30c8\u3067\u3059\u3002 target_list = [5, 5.5, 6] df2 = df.query('sepal_length in @target_list') print(df2) \u4e0b\u56f3\u306f\u305d\u306e\u7d50\u679c\u3067\u3059\u3002sepal_length\u5217\u304c5, 5.5, 6\u3067\u3042\u308b\u884c\u304c\u5168\u3066\u4e00\u62ec\u3067\u53d6\u5f97\u3067\u304d\u308b\u3053\u2026","height":"190","categories":["Python","pandas","\u62bd\u51fa"],"author_name":"HK29","width":"100%","provider_url":"https://hatena.blog","type":"rich","title":"Python \u6307\u5b9a\u5217\u306b\u5bfe\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u5024\u3068\u4e00\u81f4\u3059\u308b\u8981\u7d20\u304c\u3042\u308b\u884c\u3092\u8907\u6570\u4e00\u62ec\u3067\u62bd\u51fa\u3059\u308b\u300cPandas\u306equery\u300d","version":"1.0","blog_url":"https://hk29.hatenablog.jp/","url":"https://hk29.hatenablog.jp/entry/2021/07/16/235822","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2021%2F07%2F16%2F235822\" title=\"Python \u6307\u5b9a\u5217\u306b\u5bfe\u3057\u3066\u3001\u30ea\u30b9\u30c8\u5185\u306e\u5024\u3068\u4e00\u81f4\u3059\u308b\u8981\u7d20\u304c\u3042\u308b\u884c\u3092\u8907\u6570\u4e00\u62ec\u3067\u62bd\u51fa\u3059\u308b\u300cPandas\u306equery\u300d - Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/HK29/","blog_title":"Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b","provider_name":"Hatena Blog"}