{"id":1782,"date":"2023-07-25T00:34:00","date_gmt":"2023-07-25T00:34:00","guid":{"rendered":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/"},"modified":"2023-07-25T00:34:00","modified_gmt":"2023-07-25T00:34:00","slug":"numpyyi-np-olarak-ice-aktar","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/","title":{"rendered":"Numpy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\u0131n"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Say\u0131sal Python anlam\u0131na gelen <b>NumPy<\/b> , Python programlama dili \u00fczerine kurulmu\u015f bilimsel bir hesaplama k\u00fct\u00fcphanesidir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">NumPy&#8217;yi Python ortam\u0131n\u0131za aktarman\u0131n en yayg\u0131n yolu a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanmakt\u0131r:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> numpy <span style=\"color: #107d3f;\">as<\/span> np\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Kodun <strong>import numpy<\/strong> k\u0131sm\u0131 Python&#8217;a NumPy k\u00fct\u00fcphanesini mevcut ortam\u0131n\u0131za entegre etmesini s\u00f6yler.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Kodun <strong>as np<\/strong> k\u0131sm\u0131 Python&#8217;a NumPy&#8217;ye <strong>np<\/strong> takma ad\u0131n\u0131 vermesini s\u00f6yler. Bu, Numpy.function_name yerine np.function_name yazarak NumPy i\u015flevlerini kullanman\u0131za olanak tan\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">NumPy&#8217;yi i\u00e7e aktard\u0131ktan sonra verileri h\u0131zl\u0131 bir \u015fekilde olu\u015fturmak ve analiz etmek i\u00e7in yerle\u015fik i\u015flevleri kullanabilirsiniz.<\/span><\/p>\n<h3> <strong><span style=\"color: #000000;\">Temel bir NumPy dizisi nas\u0131l olu\u015fturulur<\/span><\/strong><\/h3>\n<p> <span style=\"color: #000000;\">NumPy&#8217;de \u00e7al\u0131\u015faca\u011f\u0131n\u0131z en yayg\u0131n veri t\u00fcr\u00fc, <strong>np.array()<\/strong> i\u015flevi kullan\u0131larak olu\u015fturulabilen <strong>dizidir<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, temel tek boyutlu bir NumPy dizisinin nas\u0131l olu\u015fturulaca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n<\/span>\n#define array<\/span>\nx = np. <span style=\"color: #3366ff;\">array<\/span> ([1, 12, 14, 9, 5])\n\n<span style=\"color: #008080;\">#display array<\/span>\n<span style=\"color: #008000;\">print<\/span> (x)\n\n[1 12 14 9 5]\n\n<span style=\"color: #008080;\">#display number of elements in array<\/span>\nx. <span style=\"color: #3366ff;\">size<\/span>\n\n5<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Ayr\u0131ca birden fazla tablo olu\u015fturabilir ve bunlar \u00fczerinde toplama, \u00e7\u0131karma, \u00e7arpma vb. i\u015flemler ger\u00e7ekle\u015ftirebilirsiniz.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np \n\n<span style=\"color: #008080;\">#define arrays<\/span><\/span>\n<span style=\"color: #000000;\">x = np. <span style=\"color: #3366ff;\">array<\/span> ([1, 12, 14, 9, 5])\ny = np. <span style=\"color: #3366ff;\">array<\/span> ([2, 3, 3, 4, 2])\n\n<\/span><span style=\"color: #008080;\">#add the two arrays<\/span>\nx+y\n\narray([ 3, 15, 17, 13, 7])\n\n<span style=\"color: #008080;\">#subtract the two arrays<\/span>\nxy\n\narray([-1, 9, 11, 5, 3])\n\n<span style=\"color: #008080;\">#multiply the two arrays<\/span>\nx*y\n\narray([ 2, 36, 42, 36, 10])\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">NumPy&#8217;nin t\u00fcm temel i\u015flevlerine ayr\u0131nt\u0131l\u0131 bir giri\u015f i\u00e7in <a href=\"https:\/\/numpy.org\/doc\/stable\/user\/absolute_beginners.html\" target=\"_blank\" rel=\"noopener\">Mutlak Yeni Ba\u015flayanlar \u0130\u00e7in NumPy K\u0131lavuzuna<\/a> g\u00f6z at\u0131n.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>NumPy&#8217;yi i\u00e7e aktar\u0131rken olas\u0131 hatalar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">NumPy&#8217;yi i\u00e7e aktar\u0131rken kar\u015f\u0131la\u015fabilece\u011finiz olas\u0131 bir hata:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <span style=\"color: #000000;\"><strong><span style=\"color: #ff0000;\">NameError<\/span> : name 'np' is not defined\n<\/strong><\/span><\/pre>\n<p> <span style=\"color: #000000;\">Bu, i\u00e7e aktar\u0131rken NumPy takma ad\u0131n\u0131 kullanamad\u0131\u011f\u0131n\u0131zda meydana gelir. Bu hatay\u0131 h\u0131zl\u0131 bir \u015fekilde nas\u0131l d\u00fczeltece\u011finizi \u00f6\u011frenmek i\u00e7in <a href=\"https:\/\/statorials.org\/tr\/ad-hatasi-adi-np-tanimli-degil\/\" target=\"_blank\" rel=\"noopener\">bu e\u011fiticiyi<\/a> okuyun.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">NumPy hakk\u0131nda daha fazla bilgi edinmek istiyorsan\u0131z a\u015fa\u011f\u0131daki kaynaklara g\u00f6z at\u0131n:<\/span><\/p>\n<p> Python istatistik k\u0131lavuzlar\u0131n\u0131n tam listesi<br \/> <a href=\"https:\/\/numpy.org\/\" target=\"_blank\" rel=\"noopener\">NumPy dok\u00fcmantasyon sayfas\u0131 \u00e7evrimi\u00e7i<\/a><br \/> <a href=\"https:\/\/twitter.com\/numpy_team?lang=en\" target=\"_blank\" rel=\"noopener\">NumPy resmi Twitter sayfas\u0131<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Say\u0131sal Python anlam\u0131na gelen NumPy , Python programlama dili \u00fczerine kurulmu\u015f bilimsel bir hesaplama k\u00fct\u00fcphanesidir. NumPy&#8217;yi Python ortam\u0131n\u0131za aktarman\u0131n en yayg\u0131n yolu a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanmakt\u0131r: import numpy as np Kodun import numpy k\u0131sm\u0131 Python&#8217;a NumPy k\u00fct\u00fcphanesini mevcut ortam\u0131n\u0131za entegre etmesini s\u00f6yler. Kodun as np k\u0131sm\u0131 Python&#8217;a NumPy&#8217;ye np takma ad\u0131n\u0131 vermesini s\u00f6yler. Bu, Numpy.function_name yerine [&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-1782","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&#039;yi kullanman\u0131n en kolay yolu: numpy&#039;yi np olarak i\u00e7e aktar\u0131n<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#039;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#039;yi np olarak i\u00e7e aktar\u0131n.\" \/>\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\/numpyyi-np-olarak-ice-aktar\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy&#039;yi kullanman\u0131n en kolay yolu: numpy&#039;yi np olarak i\u00e7e aktar\u0131n\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#039;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#039;yi np olarak i\u00e7e aktar\u0131n.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T00:34:00+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\/numpyyi-np-olarak-ice-aktar\/\",\"url\":\"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/\",\"name\":\"NumPy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\u0131n\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-25T00:34:00+00:00\",\"dateModified\":\"2023-07-25T00:34:00+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#39;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#39;yi np olarak i\u00e7e aktar\u0131n.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numpy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\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&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\u0131n","description":"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#39;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#39;yi np olarak i\u00e7e aktar\u0131n.","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\/numpyyi-np-olarak-ice-aktar\/","og_locale":"tr_TR","og_type":"article","og_title":"NumPy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\u0131n","og_description":"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#39;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#39;yi np olarak i\u00e7e aktar\u0131n.","og_url":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/","og_site_name":"Statorials","article_published_time":"2023-07-25T00:34:00+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\/numpyyi-np-olarak-ice-aktar\/","url":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/","name":"NumPy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\u0131n","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-25T00:34:00+00:00","dateModified":"2023-07-25T00:34:00+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde NumPy kitapl\u0131\u011f\u0131n\u0131 Python&#39;a aktarman\u0131n en basit ve en yayg\u0131n yolu a\u00e7\u0131klanmaktad\u0131r: numpy&#39;yi np olarak i\u00e7e aktar\u0131n.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/numpyyi-np-olarak-ice-aktar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Numpy&#39;yi kullanman\u0131n en kolay yolu: numpy&#39;yi np olarak i\u00e7e aktar\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\/1782","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=1782"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1782\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}