{"id":791,"date":"2024-05-19T00:30:31","date_gmt":"2024-05-18T15:30:31","guid":{"rendered":"https:\/\/chocottopro.com\/?p=791"},"modified":"2024-06-02T13:45:28","modified_gmt":"2024-06-02T04:45:28","slug":"%e3%80%90%e5%ae%8c%e5%85%a8%e7%89%88%e3%80%91numpy-where%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%82%92%e5%be%b9%e5%ba%95%e8%a7%a3%e8%aa%ac%ef%bc%8115%e3%81%ae%e3%82%b3%e3%83%bc%e3%83%89%e4%be%8b","status":"publish","type":"post","link":"https:\/\/chocottopro.com\/?p=791","title":{"rendered":"\u3010\u5b8c\u5168\u7248\u3011Numpy where\u306e\u4f7f\u3044\u65b9\u3092\u5fb9\u5e95\u89e3\u8aac\uff0115\u306e\u30b3\u30fc\u30c9\u4f8b\u3067\u30de\u30b9\u30bf\u30fc\u3059\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u914d\u5217\u306e\u8981\u7d20\u3092\u9078\u629e\u30fb\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u95a2\u6570\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Numpy where\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5fdc\u7528\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u307e\u3067\u3092\u7db2\u7f85\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u4f8b\u3092\u4ea4\u3048\u306a\u304c\u3089\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u6a5f\u68b0\u5b66\u7fd2\u306b\u5f79\u7acb\u3064Numpy where\u306e\u6d3b\u7528\u65b9\u6cd5\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:var(--wp--preset--color--sango-main);color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3060\u3089\u308f\u304b\u308b\u3053\u3068<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:var(--wp--preset--color--sango-main);background-color:#FFF\">\n<ul class=\"wp-block-list\">\n<li>Numpy where\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u3068\u4f7f\u3044\u65b9 <\/li>\n\n\n\n<li>\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u53d6\u5f97\u3084\u5024\u306e\u53d6\u5f97\u65b9\u6cd5 <\/li>\n\n\n\n<li>\u8907\u6570\u306e\u6761\u4ef6\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u3088\u308a\u8907\u96d1\u306a\u8981\u7d20\u306e\u9078\u629e\u65b9\u6cd5 <\/li>\n\n\n\n<li>\u914d\u5217\u306e\u5024\u306e\u7f6e\u63db\u3084\u6b20\u640d\u5024\u51e6\u7406\u306a\u3069\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af <\/li>\n\n\n\n<li>\u6a5f\u68b0\u5b66\u7fd2\u3084\u753b\u50cf\u51e6\u7406\u3001\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u3067\u306eNumpy where\u306e\u5b9f\u8df5\u4f8b <\/li>\n\n\n\n<li>Numpy where\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u306b\u5f79\u7acb\u3064\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u66f8\u7c4d\u306e\u7d39\u4ecb<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"toc\"><br \/>\n<b>Warning<\/b>:  Undefined array key \"is_admin\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>116<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_category_top\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>121<\/b><br \/>\n<br \/>\n<b>Warning<\/b>:  Undefined array key \"is_top\" in <b>\/home\/c7479301\/public_html\/chocottopro.com\/wp-content\/themes\/sango-theme\/library\/gutenberg\/dist\/classes\/Toc.php<\/b> on line <b>128<\/b><br \/>\n    <div id=\"toc_container\" class=\"sgb-toc--bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <a href=\"#i-0\">Numpy\u3068\u306f\uff1f<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-1\">Numpy\u306e\u6982\u8981\u3068\u7279\u5fb4<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-2\">Numpy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-3\">Numpy where\u306e\u57fa\u672c<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-4\">Numpy where\u306e\u69cb\u6587\u3068\u5f15\u6570<\/a>      <\/li>      <li>        <a href=\"#i-5\">Numpy where\u306e\u8fd4\u308a\u5024<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-6\">\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u4f8b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-7\">Numpy where\u306e\u4f7f\u3044\u3069\u3053\u308d<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-8\">\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u53d6\u5f97<\/a>      <\/li>      <li>        <a href=\"#i-9\">\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u5024\u306e\u53d6\u5f97<\/a>      <\/li>      <li>        <a href=\"#i-10\">\u8907\u6570\u306e\u6761\u4ef6\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-11\">\u30d6\u30fc\u30eb\u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u914d\u5217\u306e\u751f\u6210<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-12\">Numpy where\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-13\">\u914d\u5217\u306e\u5024\u306e\u7f6e\u63db<\/a>      <\/li>      <li>        <a href=\"#i-14\">\u6b20\u640d\u5024\u306e\u51e6\u7406<\/a>      <\/li>      <li>        <a href=\"#i-15\">\u4e8c\u6b21\u5143\u914d\u5217\u3067\u306e\u4f7f\u7528<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-16\">\u4ed6\u306eNumpy\u95a2\u6570\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-17\">Numpy where\u3092\u4f7f\u3063\u305f\u5b9f\u8df5\u4f8b<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-18\">\u6a5f\u68b0\u5b66\u7fd2\u3067\u306e\u30c7\u30fc\u30bf\u524d\u51e6\u7406<\/a>      <\/li>      <li>        <a href=\"#i-19\">\u753b\u50cf\u51e6\u7406\u3067\u306e\u5fdc\u7528<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-20\">\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u3067\u306e\u6d3b\u7528<\/a>      <\/li>    <\/ul>  <\/li>  <li>    <a href=\"#i-21\">Numpy where\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9<\/a>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-22\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-23\">\u304a\u3059\u3059\u3081\u306e\u66f8\u7c4d<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-24\">\u307e\u3068\u3081<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><h2 class=\"wp-block-heading\" id=\"i-0\">Numpy\u3068\u306f\uff1f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u306f\u3001Python\u306e\u6570\u5024\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001\u5927\u898f\u6a21\u306a\u591a\u6b21\u5143\u914d\u5217\u3084\u884c\u5217\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Numpy\u306f\u300cNumerical Python\u300d\u306e\u7565\u3067\u3001\u305d\u306e\u540d\u306e\u901a\u308a\u6570\u5024\u8a08\u7b97\u306b\u7279\u5316\u3057\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002Numpy\u306e\u4e3b\u306a\u7279\u5fb4\u306f\u3001\u591a\u6b21\u5143\u914d\u5217\uff08ndarray\uff09\u3092\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u914d\u5217\u306f\u3001C\u8a00\u8a9e\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Python\u306e\u7d44\u307f\u8fbc\u307f\u30ea\u30b9\u30c8\u306b\u6bd4\u3079\u3066\u9ad8\u901f\u306b\u52d5\u4f5c\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3057\u3066\u51e6\u7406\u3067\u304d\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u6e1b\u3089\u3057\u3066\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3092\u4e0a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u306f\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u3001\u6570\u5024\u8a08\u7b97\u3092\u5fc5\u8981\u3068\u3059\u308b\u5206\u91ce\u3067\u5e83\u304f\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u753b\u50cf\u51e6\u7406\u3084\u4fe1\u53f7\u51e6\u7406\u306a\u3069\u3001\u591a\u6b21\u5143\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5206\u91ce\u3067\u3082\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002Numpy\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u307e\u305a\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import numpy as np<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u3001ndarray\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002ndarray\u306f\u3001\u8907\u6570\u306e\u8981\u7d20\u3092\u6301\u3064\u914d\u5217\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f5c\u6210\u3057\u305fndarray\u306e\u5c5e\u6027\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">print(arr.shape)  # (5,)\nprint(arr.dtype)  # int64<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">ndarray\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">print(arr[0])  # 1\nprint(arr[1:4])  # [2, 3, 4]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u3088\u3046\u306b\u3001Numpy\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u5927\u898f\u6a21\u306a\u6570\u5024\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u51e6\u7406\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306e\u7bc0\u3067\u306f\u3001Numpy\u306e\u8a73\u3057\u3044\u7279\u5fb4\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-1\">Numpy\u306e\u6982\u8981\u3068\u7279\u5fb4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u7279\u5fb4\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u591a\u6b21\u5143\u914d\u5217\uff08ndarray\uff09\u3092\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u69cb\u9020\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3002<\/li>\n\n\n\n<li>C\u8a00\u8a9e\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Python\u306e\u7d44\u307f\u8fbc\u307f\u30ea\u30b9\u30c8\u306b\u6bd4\u3079\u3066\u9ad8\u901f\u306b\u52d5\u4f5c\u3059\u308b\u3002<\/li>\n\n\n\n<li>\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3057\u3066\u51e6\u7406\u3067\u304d\u308b\u305f\u3081\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u3092\u6e1b\u3089\u3057\u3066\u30b3\u30fc\u30c9\u306e\u53ef\u8aad\u6027\u3092\u4e0a\u3052\u3089\u308c\u308b\u3002<\/li>\n\n\n\n<li>\u6570\u5b66\u95a2\u6570\u3084\u64cd\u4f5c\u304c\u8c4a\u5bcc\u306b\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u6570\u5024\u8a08\u7b97\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u7279\u5fb4\u306b\u3088\u308a\u3001Numpy\u306f\u6570\u5024\u8a08\u7b97\u3092\u5fc5\u8981\u3068\u3059\u308b\u69d8\u3005\u306a\u5206\u91ce\u3067\u6d3b\u8e8d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-2\">Numpy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install numpy<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305f\u306f\u3001Anaconda\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conda install numpy<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Python\u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u3084\u30ce\u30fc\u30c8\u30d6\u30c3\u30af\u74b0\u5883\u3067Numpy\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3066\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-3\">Numpy where\u306e\u57fa\u672c<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy \u306e where \u95a2\u6570\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u3092\u9078\u629e\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u95a2\u6570\u3067\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8fd4\u3057\u305f\u308a\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u7570\u306a\u308b\u5024\u3092\u5272\u308a\u5f53\u3066\u305f\u308a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-4\">Numpy where\u306e\u69cb\u6587\u3068\u5f15\u6570<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">numpy.where(condition[, x, y])<\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>condition: \u6761\u4ef6\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u771f\u507d\u5024\u306e\u914d\u5217\u307e\u305f\u306f\u5f0f\u3067\u3059\u3002<\/li>\n\n\n\n<li>x, y: \u6761\u4ef6\u304c\u771f\u306e\u3068\u304d\u306b\u8fd4\u3059\u5024\uff08x\uff09\u3068\u507d\u306e\u3068\u304d\u306b\u8fd4\u3059\u5024\uff08y\uff09\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u7701\u7565\u53ef\u80fd\u3067\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-5\">Numpy where\u306e\u8fd4\u308a\u5024<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u6761\u4ef6\u304c\u771f\u3068\u306a\u308b\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002x, y\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306f\u3001\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u8981\u7d20\u3092\u9078\u629e\u3057\u305f\u65b0\u3057\u3044\u914d\u5217\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-6\">\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30fc\u30c9\u4f8b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u306f\u3001Numpy where\u306e\u7c21\u5358\u306a\u4f7f\u7528\u4f8b\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import numpy as np\n\narr = np.array([1, 2, 3, 4, 5])\n\n# \u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3059\u308b\nresult = np.where(arr &gt; 3)\nprint(result)  # (array([3, 4]),)\n\n# \u6761\u4ef6\u306b\u5fdc\u3058\u3066\u5024\u3092\u5272\u308a\u5f53\u3066\u308b\nresult = np.where(arr &gt; 3, 1, 0)\nprint(result)  # [0 0 0 1 1]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c3\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b93\u30684\u304c\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2\u756a\u76ee\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c3\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306f1\u3092\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f0\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u65b0\u3057\u3044\u914d\u5217\u304c\u4f5c\u6210\u3055\u308c\u305f\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u305f\u3060\u3057\u3001\u4ee5\u4e0b\u306e\u70b9\u306b\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6761\u4ef6\u5f0f\u306e\u7d50\u679c\u306f\u3001\u5143\u306e\u914d\u5217\u3068\u540c\u3058\u5f62\u72b6\u306e\u771f\u507d\u5024\u914d\u5217\u306b\u306a\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>x, y\u3092\u6307\u5b9a\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u3089\u306f\u6761\u4ef6\u5f0f\u3068\u540c\u3058\u5f62\u72b6\u304b\u3001\u30d6\u30ed\u30fc\u30c9\u30ad\u30e3\u30b9\u30c8\u53ef\u80fd\u306a\u5f62\u72b6\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u30c7\u30fc\u30bf\u3092\u9078\u629e\u307e\u305f\u306f\u5909\u66f4\u3059\u308b\u969b\u306b\u975e\u5e38\u306b\u4fbf\u5229\u306a\u95a2\u6570\u3067\u3059\u3002\u6b21\u306e\u7bc0\u3067\u306f\u3001Numpy where\u306e\u3088\u308a\u5177\u4f53\u7684\u306a\u4f7f\u7528\u4f8b\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-7\">Numpy where\u306e\u4f7f\u3044\u3069\u3053\u308d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u69d8\u3005\u306a\u72b6\u6cc1\u3067\u6d3b\u7528\u3067\u304d\u308b\u4fbf\u5229\u306a\u95a2\u6570\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001Numpy where\u306e\u4e3b\u306a\u4f7f\u3044\u65b9\u30924\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-8\">\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u53d6\u5f97<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u4f7f\u3063\u3066\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5229\u7528\u3057\u3066\u4ed6\u306e\u51e6\u7406\u3092\u884c\u3063\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\nindices = np.where(arr % 2 == 0)\nprint(indices)  # (array([1, 3]),)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c\u5076\u6570\u3067\u3042\u308b\u5834\u5408\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b91\u30683\u304c\u6761\u4ef6\u3092\u6e80\u305f\u3059\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-9\">\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u5024\u306e\u53d6\u5f97<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u4f7f\u3063\u3066\u3001\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u5024\u3092\u76f4\u63a5\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u304b\u3089\u5024\u3092\u62bd\u51fa\u3059\u308b\u3088\u308a\u3082\u7c21\u6f54\u306b\u66f8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\neven_values = arr[np.where(arr % 2 == 0)]\nprint(even_values)  # [2 4]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c\u5076\u6570\u3067\u3042\u308b\u5834\u5408\u306e\u5024\u3092\u76f4\u63a5\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u5024\u3067\u3042\u308b2\u30684\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-10\">\u8907\u6570\u306e\u6761\u4ef6\u3092\u7d44\u307f\u5408\u308f\u305b\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u30d6\u30fc\u30eb\u6f14\u7b97\u5b50\uff08&amp;, |, ~\uff09\u3067\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u3088\u308a\u8907\u96d1\u306a\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u3092\u9078\u629e\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\nresult = np.where((arr &gt; 2) &amp; (arr &lt; 5))\nprint(result)  # (array([2, 3]),)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c2\u3088\u308a\u5927\u304d\u304f\u3001\u304b\u30645\u3088\u308a\u5c0f\u3055\u3044\u5834\u5408\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u30a4\u30f3\u30c7\u30c3\u30af\u30b92\u30683\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-11\">\u30d6\u30fc\u30eb\u578b\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u914d\u5217\u306e\u751f\u6210<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306e\u6761\u4ef6\u5f0f\u306e\u7d50\u679c\u306f\u3001\u30d6\u30fc\u30eb\u578b\u306e\u914d\u5217\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d6\u30fc\u30eb\u578b\u914d\u5217\u3092\u4f7f\u3063\u3066\u3001\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u3092\u62bd\u51fa\u3057\u305f\u308a\u3001\u5024\u3092\u5272\u308a\u5f53\u3066\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\nbool_indices = arr &gt; 3\nprint(bool_indices)  # [False False False  True  True]\nfiltered_arr = arr[bool_indices]\nprint(filtered_arr)  # [4 5]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c3\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306e\u30d6\u30fc\u30eb\u578b\u914d\u5217\u3092\u751f\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30d6\u30fc\u30eb\u578b\u914d\u5217\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u307f\u3092\u62bd\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001Numpy where\u306f\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u8981\u7d20\u3092\u9078\u629e\u3057\u305f\u308a\u3001\u5024\u3092\u53d6\u5f97\u3057\u305f\u308a\u3059\u308b\u969b\u306b\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u6b21\u306e\u7bc0\u3067\u306f\u3001Numpy where\u306e\u3088\u308a\u9ad8\u5ea6\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-12\">Numpy where\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u69d8\u3005\u306a\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3046\u3053\u3068\u3067\u3055\u3089\u306b\u5f37\u529b\u306a\u30c4\u30fc\u30eb\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001Numpy where\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u30924\u3064\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-13\">\u914d\u5217\u306e\u5024\u306e\u7f6e\u63db<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u4f7f\u3063\u3066\u3001\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u306e\u5024\u3092\u5225\u306e\u5024\u306b\u4e00\u62ec\u7f6e\u63db\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u5024\u3092\u4ed6\u306e\u5024\u306b\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\nreplaced_arr = np.where(arr &gt; 3, 0, arr)\nprint(replaced_arr)  # [1 2 3 0 0]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c3\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u3001\u305d\u306e\u5024\u30920\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u30014\u30685\u304c0\u306b\u7f6e\u63db\u3055\u308c\u305f\u65b0\u3057\u3044\u914d\u5217\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-14\">\u6b20\u640d\u5024\u306e\u51e6\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u4f7f\u3063\u3066\u3001\u6b20\u640d\u5024\uff08NaN\uff09\u3092\u7279\u5b9a\u306e\u5024\u306b\u7f6e\u63db\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u306e\u969b\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u30c6\u30af\u30cb\u30c3\u30af\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, np.nan, 4, 5])\nreplaced_arr = np.where(np.isnan(arr), 0, arr)\nprint(replaced_arr)  # [1. 2. 0. 4. 5.]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304cNaN\u3067\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u5024\u30920\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001NaN\u304c0\u306b\u7f6e\u63db\u3055\u308c\u305f\u65b0\u3057\u3044\u914d\u5217\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-15\">\u4e8c\u6b21\u5143\u914d\u5217\u3067\u306e\u4f7f\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u4e8c\u6b21\u5143\u914d\u5217\uff08\u884c\u5217\uff09\u306b\u5bfe\u3057\u3066\u3082\u9069\u7528\u3067\u304d\u307e\u3059\u3002\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u5024\u3092\u7f6e\u63db\u3057\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr_2d = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])\nindices = np.where(arr_2d &gt; 5)\nprint(indices)  # (array([1, 2, 2]), array([2, 0, 1]))<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr_2d\u306e\u8981\u7d20\u304c5\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u884c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u5217\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u305d\u308c\u305e\u308c\u5225\u306e\u914d\u5217\u3067\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-16\">\u4ed6\u306eNumpy\u95a2\u6570\u3068\u306e\u7d44\u307f\u5408\u308f\u305b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u4ed6\u306eNumpy\u95a2\u6570\u3068\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u3088\u308a\u67d4\u8edf\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001np.sum()\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u5408\u8a08\u3092\u6c42\u3081\u305f\u308a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">arr = np.array([1, 2, 3, 4, 5])\ntotal = np.sum(arr[np.where(arr &gt; 3)])\nprint(total)  # 9<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001arr\u306e\u8981\u7d20\u304c3\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53d6\u5f97\u3057\u3001\u305d\u306e\u8981\u7d20\u306e\u5408\u8a08\u3092\u6c42\u3081\u3066\u3044\u307e\u3059\u3002\u7d50\u679c\u306f\u3001\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\uff084\u30685\uff09\u306e\u5408\u8a08\u5024\u3067\u3042\u308b9\u304c\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u3001Numpy where\u306e\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u51e6\u7406\u306e\u5e45\u304c\u5927\u304d\u304f\u5e83\u304c\u308a\u307e\u3059\u3002\u6b21\u306e\u7bc0\u3067\u306f\u3001\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u5206\u6790\u30bf\u30b9\u30af\u3067\u306eNumpy where\u306e\u6d3b\u7528\u4f8b\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-17\">Numpy where\u3092\u4f7f\u3063\u305f\u5b9f\u8df5\u4f8b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u69d8\u3005\u306a\u5206\u91ce\u3067\u30c7\u30fc\u30bf\u5206\u6790\u3084\u51e6\u7406\u306b\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u6a5f\u68b0\u5b66\u7fd2\u3001\u753b\u50cf\u51e6\u7406\u3001\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u306e3\u3064\u306e\u5206\u91ce\u3067\u306eNumpy where\u306e\u5b9f\u8df5\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-18\">\u6a5f\u68b0\u5b66\u7fd2\u3067\u306e\u30c7\u30fc\u30bf\u524d\u51e6\u7406<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a5f\u68b0\u5b66\u7fd2\u3067\u306f\u3001\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u304c\u30e2\u30c7\u30eb\u306e\u6027\u80fd\u306b\u5927\u304d\u306a\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u3059\u3002Numpy where\u3092\u4f7f\u3063\u3066\u3001\u6b20\u640d\u5024\u306e\u51e6\u7406\u3084\u30ab\u30c6\u30b4\u30ea\u30ab\u30eb\u30c7\u30fc\u30bf\u306e\u6570\u5024\u5316\u306a\u3069\u3092\u52b9\u7387\u7684\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u6b20\u640d\u5024\u306e\u51e6\u7406\nX = np.array([[1, 2, np.nan], [4, np.nan, 6], [7, 8, 9]])\nX_processed = np.where(np.isnan(X), 0, X)\nprint(X_processed)\n# [[1. 2. 0.]\n#  [4. 0. 6.]\n#  [7. 8. 9.]]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u6b20\u640d\u5024\uff08NaN\uff09\u30920\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306b\u3001Numpy where\u3092\u4f7f\u3063\u3066\u6b20\u640d\u5024\u3092\u7279\u5b9a\u306e\u5024\u306b\u4e00\u62ec\u3067\u7f6e\u63db\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u3092\u7c21\u6f54\u306b\u8a18\u8ff0\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-19\">\u753b\u50cf\u51e6\u7406\u3067\u306e\u5fdc\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u753b\u50cf\u51e6\u7406\u306e\u5206\u91ce\u3067\u3082\u3001Numpy where\u306f\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u753b\u50cf\u306e\u30d4\u30af\u30bb\u30eb\u5024\u3092\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u64cd\u4f5c\u3059\u308b\u3053\u3068\u3067\u3001\u753b\u50cf\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3084\u7279\u5b9a\u306e\u9818\u57df\u306e\u62bd\u51fa\u306a\u3069\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u753b\u50cf\u306e\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\nimg = np.array([[100, 120, 140], [160, 180, 200], [220, 240, 255]], dtype=np.uint8)\nfiltered_img = np.where(img &gt; 150, 255, 0).astype(np.uint8)\nprint(filtered_img)\n# [[  0   0   0]\n#  [255 255 255]\n#  [255 255 255]]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001\u753b\u50cf\u306e\u30d4\u30af\u30bb\u30eb\u5024\u304c150\u3088\u308a\u5927\u304d\u3044\u5834\u5408\u306f255\uff08\u767d\uff09\u306b\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f0\uff08\u9ed2\uff09\u306b\u7f6e\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u7c21\u5358\u306a2\u5024\u5316\u30d5\u30a3\u30eb\u30bf\u3092\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-20\">\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u3067\u306e\u6d3b\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u306e\u5206\u91ce\u3067\u306f\u3001Numpy where\u3092\u4f7f\u3063\u3066\u6761\u4ef6\u4ed8\u304d\u7d71\u8a08\u91cf\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30ea\u30bf\u30fc\u30f3\u306e\u8a08\u7b97\u3084\u30ea\u30b9\u30af\u7ba1\u7406\u6307\u6a19\u306e\u7b97\u51fa\u306a\u3069\u306b\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u30ea\u30bf\u30fc\u30f3\u306e\u8a08\u7b97\nprices = np.array([100, 110, 105, 115, 120])\nreturns = np.where(np.arange(len(prices)) &gt; 0, prices[1:] \/ prices[:-1] - 1, 0)\nprint(returns)  # [0.   0.1  -0.04545455  0.0952381   0.04347826]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001\u4fa1\u683c\u30c7\u30fc\u30bf\u304b\u3089\u30ea\u30bf\u30fc\u30f3\u3092\u8a08\u7b97\u3057\u3066\u3044\u307e\u3059\u3002Numpy where\u3092\u4f7f\u3063\u3066\u3001\u521d\u671f\u5024\u4ee5\u5916\u306e\u8981\u7d20\u306b\u3064\u3044\u3066\u30ea\u30bf\u30fc\u30f3\u3092\u8a08\u7b97\u3057\u3001\u521d\u671f\u5024\u306b\u306f0\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0a\u306e\u4f8b\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u3001Numpy where\u306f\u69d8\u3005\u306a\u5206\u91ce\u3067\u5b9f\u8df5\u7684\u306b\u6d3b\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u5206\u6790\u3084\u51e6\u7406\u306e\u30bf\u30b9\u30af\u3067Numpy where\u3092\u9069\u5207\u306b\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u52b9\u7387\u7684\u304b\u3064\u7c21\u6f54\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306e\u7bc0\u3067\u306f\u3001Numpy where\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u5b66\u3076\u305f\u3081\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-21\">Numpy where\u306e\u3055\u3089\u306a\u308b\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u307e\u3067\u306e\u5185\u5bb9\u3067\u3001Numpy where\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5fdc\u7528\u307e\u3067\u3092\u4e00\u901a\u308a\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u3055\u3089\u306b\u7406\u89e3\u3092\u6df1\u3081\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-22\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u306f\u3001where\u306e\u8a73\u7d30\u306a\u8aac\u660e\u3084\u4f7f\u7528\u4f8b\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u8aad\u3080\u3053\u3068\u3067\u3001where\u306e\u52d5\u4f5c\u3084\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u6df1\u304f\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\uff1a<br><a href=\"https:\/\/numpy.org\/doc\/stable\/reference\/generated\/numpy.where.html\">https:\/\/numpy.org\/doc\/stable\/reference\/generated\/numpy.where.html<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"i-23\">\u304a\u3059\u3059\u3081\u306e\u66f8\u7c4d<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy\u306b\u3064\u3044\u3066\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u66f8\u7c4d\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e2\u518a\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u300cPython Data Science Handbook\u300d\uff08Jake VanderPlas\u8457\uff09\n<ul class=\"wp-block-list\">\n<li>Numpy\u306e\u89e3\u8aac\u306b\u52a0\u3048\u3001where\u306e\u4f7f\u7528\u4f8b\u3082\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b3\u30fc\u30c9\u4f8b\u304c\u8c4a\u5bcc\u3067\u3001\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u304c\u5b66\u3079\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u300cPython\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u30cf\u30f3\u30c9\u30d6\u30c3\u30af\u300d\uff08Jake VanderPlas\u8457\u3001\u83ca\u6c60\u5f70\u8a33\uff09\n<ul class=\"wp-block-list\">\n<li>\u4e0a\u8a18\u306e\u65e5\u672c\u8a9e\u7248\u3067\u3059\u3002<\/li>\n\n\n\n<li>Numpy\u306e\u7ae0\u3067where\u306e\u4f7f\u3044\u65b9\u304c\u4e01\u5be7\u306b\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u66f8\u7c4d\u3092\u901a\u3058\u3066\u3001Numpy\u3068where\u306e\u4f7f\u3044\u65b9\u3092\u4f53\u7cfb\u7684\u306b\u5b66\u7fd2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-24\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u8a18\u4e8b\u3067\u306f\u3001Numpy where\u306e\u57fa\u672c\u304b\u3089\u5fdc\u7528\u307e\u3067\u3092\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002Numpy where\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u914d\u5217\u306e\u8981\u7d20\u3092\u9078\u629e\u30fb\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u95a2\u6570\u3067\u3042\u308a\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u6a5f\u68b0\u5b66\u7fd2\u306e\u30bf\u30b9\u30af\u306b\u304a\u3044\u3066\u975e\u5e38\u306b\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6761\u4ef6\u3092\u6e80\u305f\u3059\u8981\u7d20\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3084\u5024\u3092\u53d6\u5f97\u3059\u308b<\/li>\n\n\n\n<li>\u8907\u6570\u306e\u6761\u4ef6\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u3088\u308a\u8907\u96d1\u306a\u8981\u7d20\u306e\u9078\u629e\u3092\u884c\u3046<\/li>\n\n\n\n<li>\u914d\u5217\u306e\u5024\u3092\u6761\u4ef6\u306b\u5fdc\u3058\u3066\u7f6e\u63db\u3057\u305f\u308a\u3001\u6b20\u640d\u5024\u3092\u51e6\u7406\u3057\u305f\u308a\u3059\u308b<\/li>\n\n\n\n<li>\u6a5f\u68b0\u5b66\u7fd2\u306b\u304a\u3051\u308b\u30c7\u30fc\u30bf\u524d\u51e6\u7406\u3084\u3001\u753b\u50cf\u51e6\u7406\u3001\u91d1\u878d\u30c7\u30fc\u30bf\u5206\u6790\u306a\u3069\u306e\u5b9f\u8df5\u7684\u306a\u30bf\u30b9\u30af\u3067\u6d3b\u7528\u3059\u308b<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u306f\u3001\u52b9\u7387\u7684\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b\u4e0d\u53ef\u6b20\u306a\u30c4\u30fc\u30eb\u3067\u3042\u308a\u3001\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u3084AI\u30a8\u30f3\u30b8\u30cb\u30a2\u306b\u3068\u3063\u3066\u7fd2\u5f97\u3059\u3079\u304d\u30b9\u30ad\u30eb\u306e\u4e00\u3064\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u7d39\u4ecb\u3057\u305f\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3084\u5fdc\u7528\u30c6\u30af\u30cb\u30c3\u30af\u3092\u6d3b\u7528\u3057\u3001\u3055\u3089\u306b\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3084\u66f8\u7c4d\u306a\u3069\u306e\u5b66\u7fd2\u30ea\u30bd\u30fc\u30b9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001Numpy where\u306e\u7406\u89e3\u3092\u3088\u308a\u6df1\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Numpy where\u3092\u30de\u30b9\u30bf\u30fc\u3057\u3001\u30c7\u30fc\u30bf\u5206\u6790\u306e\u30b9\u30ad\u30eb\u3092\u78e8\u3044\u3066\u3044\u304f\u3053\u3068\u3067\u3001\u3088\u308a\u9ad8\u5ea6\u306a\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u3084\u6a5f\u68b0\u5b66\u7fd2\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u7d44\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u305c\u3072\u3001\u672c\u8a18\u4e8b\u3067\u5f97\u305f\u77e5\u8b58\u3092\u5b9f\u8df5\u3067\u6d3b\u304b\u3057\u3001Numpy where\u3092\u4f7f\u3044\u3053\u306a\u305b\u308b\u3088\u3046\u306b\u306a\u308b\u3053\u3068\u3092\u76ee\u6307\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Numpy where\u306f\u3001\u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u914d\u5217\u306e\u8981\u7d20\u3092\u9078\u629e\u30fb\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u306a\u95a2\u6570\u3067\u3059\u3002\u672c\u8a18\u4e8b\u3067\u306f\u3001Numpy where\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5fdc\u7528\u7684\u306a\u30c6\u30af\u30cb\u30c3\u30af\u307e\u3067\u3092\u7db2\u7f85\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u30b3\u30fc\u30c9\u4f8b\u3092\u4ea4\u3048\u306a\u304c\u3089\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":834,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-791","post","type-post","status-publish","format-standard","has-post-thumbnail","category-python"],"_links":{"self":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=791"}],"version-history":[{"count":1,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions"}],"predecessor-version":[{"id":792,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/posts\/791\/revisions\/792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=\/wp\/v2\/media\/834"}],"wp:attachment":[{"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chocottopro.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}