{"provider_name":"Hatena Blog","version":"1.0","blog_url":"https://ohke.hateblo.jp/","width":"100%","author_name":"ohke","url":"https://ohke.hateblo.jp/entry/2020/03/07/000000","title":"pandas\u5c0f\u6280: \u8907\u6570\u306e\u6587\u5b57\u5217\u306e\u3044\u305a\u308c\u304b\u3092\u542b\u3080 (OR + \u90e8\u5206\u4e00\u81f4) \u691c\u7d22\u3057\u305f\u3044","categories":["Python"],"published":"2020-03-07 00:00:00","image_url":null,"type":"rich","provider_url":"https://hatena.blog","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fohke.hateblo.jp%2Fentry%2F2020%2F03%2F07%2F000000\" title=\"pandas\u5c0f\u6280: \u8907\u6570\u306e\u6587\u5b57\u5217\u306e\u3044\u305a\u308c\u304b\u3092\u542b\u3080 (OR + \u90e8\u5206\u4e00\u81f4) \u691c\u7d22\u3057\u305f\u3044 - \u3051\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>","description":"\u4f8b\u3048\u3070\u2193\u306e\u30c6\u30fc\u30d6\u30eb\u304b\u3089 \u6771\u4eac\u90fd\u307e\u305f\u306f\u5343\u8449\u770c \u3092\u542b\u3080\u5024\u3060\u3051\u3092\u30d5\u30a3\u30eb\u30bf\u3059\u308b\u5834\u5408\u306b\u3001pandas\u3067\u306f\u3069\u3046\u66f8\u304f\u304b\u3067\u3059\u3002 name 0 \u6771\u4eac\u90fd\u845b\u98fe\u533a 1 \u795e\u5948\u5ddd\u770c\u5ddd\u5d0e\u5e02 2 \u57fc\u7389\u770c\u8568\u5e02 3 \u5343\u8449\u770c\u8607\u6211\u5e02 pandas\u306estr.contains\u306f\u6b63\u898f\u8868\u73fe\u30d1\u30bf\u30fc\u30f3\u3092\u542b\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u691c\u7d22\u3057\u305f\u3044\u6587\u5b57\u5217\u30ea\u30b9\u30c8\u3092 | \u3067\u7d50\u5408\u3059\u308b\u3068 \"\u3044\u305a\u308c\u304b\u306e\u6587\u5b57\u5217\u3092\u542b\u3080\" \u3068\u3044\u3046\u691c\u7d22\u304c\u3067\u304d\u307e\u3059\u3002 df = pd.DataFrame({ \"name\": [\"\u6771\u4eac\u90fd\u845b\u98fe\u533a\", \"\u795e\u5948\u5ddd\u770c\u5ddd\u5d0e\u5e02\", \"\u57fc\u7389\u770c\u8568\u5e02\", \"\u5343\u8449\u770c\u8607\u6211\u5e02\"] }) print(df.name.str.contains(\"\u6771\u4eac\u90fd|\u5343\u8449\u770c\"))\u2026","blog_title":"\u3051\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/ohke/"}