{"id":4304,"date":"2023-07-12T03:55:48","date_gmt":"2023-07-12T03:55:48","guid":{"rendered":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/"},"modified":"2023-07-12T03:55:48","modified_gmt":"2023-07-12T03:55:48","slug":"numpy-sayim-degerleri-sundan-buyuk","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/","title":{"rendered":"Numpy: de\u011ferden b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 saymak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\nvals_greater_10 = (data <span style=\"color: #800080;\">&gt;<\/span> <span style=\"color: #008000;\">10<\/span> ). <span style=\"color: #3366ff;\">sum<\/span> ()\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu \u00f6zel \u00f6rnek, <strong>data<\/strong> ad\u0131 verilen NumPy dizisindeki 10&#8217;dan b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 d\u00f6nd\u00fcrecektir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnek, bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek: NumPy dizisindeki de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">Toplamda 15 \u00f6\u011feli a\u015fa\u011f\u0131daki 2D NumPy dizisine sahip oldu\u011fumuzu varsayal\u0131m:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#create 2D NumPy array with 3 columns and 5 rows\n<\/span>data = np. <span style=\"color: #3366ff;\">matrix<\/span> (np. <span style=\"color: #3366ff;\">arange<\/span> (15). <span style=\"color: #3366ff;\">reshape<\/span> ((5, 3)))\n\n<span style=\"color: #008080;\">#view NumPy array\n<\/span><span style=\"color: #008000;\">print<\/span> (data)\n\n[[ 0 1 2]\n [3 4 5]\n [6 7 8]\n [9 10 11]\n [12 13 14]]\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Dizideki de\u011feri 10&#8217;dan b\u00fcy\u00fck olan \u00f6\u011felerin toplam say\u0131s\u0131n\u0131 saymak i\u00e7in a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#count number of values greater than 10 in NumPy matrix\n<\/span>vals_greater_10 = (data <span style=\"color: #800080;\">&gt;<\/span> <span style=\"color: #008000;\">10<\/span> ). <span style=\"color: #3366ff;\">sum<\/span> ()\n\n<span style=\"color: #008080;\">#view results\n<\/span><span style=\"color: #008000;\">print<\/span> (vals_greater_10)\n\n4<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7tan NumPy dizisindeki <strong>4<\/strong> de\u011ferin 10&#8217;dan b\u00fcy\u00fck oldu\u011funu g\u00f6rebiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">NumPy dizisini manuel olarak incelersek d\u00f6rt \u00f6\u011fenin (11, 12, 13, 14) ger\u00e7ekten 10&#8217;dan b\u00fcy\u00fck oldu\u011funu do\u011frulayabiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">10&#8217;dan k\u00fc\u00e7\u00fck eleman say\u0131s\u0131n\u0131 bulmak i\u00e7in k\u00fc\u00e7\u00fckt\u00fcr operat\u00f6r\u00fcn\u00fc ( <strong>&lt;<\/strong> ) kullanabiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008080;\">#count number of values less than 10 in NumPy matrix\n<\/span>vals_less_10 = (data <span style=\"color: #800080;\">&lt;<\/span> <span style=\"color: #008000;\">10<\/span> ). <span style=\"color: #3366ff;\">sum<\/span> ()\n\n<span style=\"color: #008080;\">#view results\n<\/span><span style=\"color: #008000;\">print<\/span> (vals_less_10)\n\n10<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7tan NumPy dizisindeki <b>10<\/b> de\u011ferin 10&#8217;dan k\u00fc\u00e7\u00fck oldu\u011funu g\u00f6rebiliriz.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde Python&#8217;da di\u011fer yayg\u0131n i\u015flemlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/numpy-sayisi-nan\/\" target=\"_blank\" rel=\"noopener\">NumPy&#8217;de NaN&#8217;ye e\u015fit elemanlar\u0131n say\u0131s\u0131 nas\u0131l say\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/numpy-sayim-sifirlari\/\" target=\"_blank\" rel=\"noopener\">NumPy&#8217;de s\u0131f\u0131ra e\u015fit \u00f6\u011felerin say\u0131s\u0131 nas\u0131l say\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/numpy-sayisi-dogru\/\" target=\"_blank\" rel=\"noopener\">NumPy&#8217;de True&#8217;ya e\u015fit \u00f6\u011felerin say\u0131s\u0131 nas\u0131l say\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 saymak i\u00e7in a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullanabilirsiniz: import numpy as np vals_greater_10 = (data &gt; 10 ). sum () Bu \u00f6zel \u00f6rnek, data ad\u0131 verilen NumPy dizisindeki 10&#8217;dan b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 d\u00f6nd\u00fcrecektir. A\u015fa\u011f\u0131daki \u00f6rnek, bu s\u00f6zdiziminin pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir. \u00d6rnek: NumPy dizisindeki de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-4304","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-12T03:55:48+00:00\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/\",\"url\":\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/\",\"name\":\"NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-12T03:55:48+00:00\",\"dateModified\":\"2023-07-12T03:55:48+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numpy: de\u011ferden b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n","description":"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/","og_locale":"tr_TR","og_type":"article","og_title":"NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n","og_description":"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/","og_site_name":"Statorials","article_published_time":"2023-07-12T03:55:48+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/","url":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/","name":"NumPy: de\u011ferden b\u00fcy\u00fck olan \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-12T03:55:48+00:00","dateModified":"2023-07-12T03:55:48+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, bir NumPy dizisindeki belirli bir de\u011ferden b\u00fcy\u00fck \u00f6\u011fe say\u0131s\u0131n\u0131n nas\u0131l say\u0131laca\u011f\u0131 \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/numpy-sayim-degerleri-sundan-buyuk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Numpy: de\u011ferden b\u00fcy\u00fck \u00f6\u011felerin say\u0131s\u0131n\u0131 say\u0131n"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/4304","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=4304"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/4304\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=4304"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=4304"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=4304"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}