[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685790-105":59,"doc-detail-685790-en":130,"doc-similar-685790":158},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","numpy-and-scipy-tutorial-installation-and-array-fundamentals","NumPy and SciPy Tutorial - Installation and Array Fundamentals","","Covers how to install and start using the open-source NumPy and SciPy Python add-on modules, emphasizing fast pre-compiled numerical routines. Explains importing NumPy using both standard and shorter aliases, and clarifies why wildcard imports are generally discouraged. Introduces NumPy arrays as the central data structure, showing creation from lists, element access and slicing, and the extension to multidimensional arrays. Also previews related topics such as array mathematics, iteration, comparisons, selection, statistics, random numbers, and SciPy modules.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/numpy-and-scipy-tutorial-installation-and-array-fundamentals/685790/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/numpy-and-scipy-tutorial-installation-and-array-fundamentals/685790.png","ImageObject",300,407,{"name":92,"@type":93},"Cipher","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"How should NumPy and SciPy be installed?","Question",{"text":112,"@type":113},"If using Anaconda, setup is typically already done. Otherwise, install manually in the order of NumPy first, then SciPy after installing Python.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What are common ways to import NumPy in Python?",{"text":117,"@type":113},"You can use a standard import (import numpy) or import under an alias (import numpy as np) to shorten calls. You can also import directly from numpy with from numpy import *, but this style is usually discouraged.",{"name":119,"@type":110,"acceptedAnswer":120},"What makes NumPy arrays different from Python lists?",{"text":121,"@type":113},"NumPy arrays require elements to be of the same type (often numeric), and they support fast operations on large amounts of numeric data, making them more efficient than lists. Arrays also support multidimensional access and slicing.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},685790,1794018485,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":81,"preview_urls":145},687208528416,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Table of contents  \nTable of contents ............................................................................................................................ 1  \nOverview ......................................................................................................................................... 2  \nInstallation ...................................................................................................................................... 2  \nOther resources .............................................................................................................................. 2  \nImporting the NumPy module ........................................................................................................ 2  \nArrays .............................................................................................................................................. 3  \nOther ways to create arrays............................................................................................................ 7  \nArray mathematics.......................................................................................................................... 8  \nArray iteration ............................................................................................................................... 10  \nBasic array operations .................................................................................................................. 10  \nComparison operators and value testing ..................................................................................... 12  \nArray item selection and manipulation ........................................................................................ 14  \nVector and matrix mathematics ................................................................................................... 16  \nPolynomial mathematics .............................................................................................................. 18  \nStatistics ........................................................................................................................................ 19  \nRandom numbers.......................................................................................................................... 19  \nOther functions to know about .................................................................................................... 21  \nModules available in SciPy ............................................................................................................ 21  \n© 2025 M. Scott Shell 1/23 last modified 7/26/2025  \nOverview  \nNumPy and SciPy are open-source add-on modules to Python that provide common mathematical and numerical routines in pre-compiled, fast functions. These are highly mature packages that provide numerical functionality that meets, or perhaps exceeds, that associated with commercial software. The NumPy (Numeric Python) package provides basic routines for manipulating large arrays and matrices of numeric data. The SciPy (Scientific Python) package extends the functionality of NumPy with a substantial collection of useful algorithms like minimization, Fourier transformation, regression, and other applied mathematical techniques.  \nInstallation  \nIf you installed the Anaconda distribution, then you should be ready to go. If not, then you will have to install these add-ons manually after installing Python, in the order of NumPy and then SciPy. Installation files are available at:  \n[https://numpy.org](https://numpy.org)  \n[https://scipy.org](https://scipy.org)  \nOther resources  \nThe NumPy and SciPy development community maintains an extensive online documentation system, including user guides and tutorials, at:  \n[https://docs.scipy.org/doc/](https://docs.scipy.org/doc/)  \nImporting the NumPy module  \nThere are several ways to import NumPy. The standard approach is to use a simple import statement:  \n>>> import numpy  \nHowever, fo","cbCaigLMdZi65HIv","https://ap.wps.com/l/cbCaigLMdZi65HIv","pdf",404192,23,"English","# Overview\n## Installation\n## Other resources\n## Importing the NumPy module\n## Arrays\n## Other ways to create arrays\n## Array mathematics\n## Array iteration\n## Basic array operations\n## Comparison operators and value testing\n## Array item selection and manipulation\n## Vector and matrix mathematics\n## Polynomial mathematics\n## Statistics\n## Random numbers\n## Other functions to know about\n## Modules available in SciPy","[{\"question\":\"How should NumPy and SciPy be installed?\",\"answer\":\"If using Anaconda, setup is typically already done. Otherwise, install manually in the order of NumPy first, then SciPy after installing Python.\"},{\"question\":\"What are common ways to import NumPy in Python?\",\"answer\":\"You can use a standard import (import numpy) or import under an alias (import numpy as np) to shorten calls. You can also import directly from numpy with from numpy import *, but this style is usually discouraged.\"},{\"question\":\"What makes NumPy arrays different from Python lists?\",\"answer\":\"NumPy arrays require elements to be of the same type (often numeric), and they support fast operations on large amounts of numeric data, making them more efficient than lists. Arrays also support multidimensional access and slicing.\"}]","NumPy and SciPy Tutorial - Installation and Array Fundamentals | PDF",58,[146,150,154],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/355fac6b9937ce191602a67040ab115b.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/0d53b21b75fa6003ba60f1aab040a67b.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/519b344459a708424919fa4ef6098d48.webp",981,1269,{"list":159,"token":66},[160,166,172,178,184,190,196,202,208,214],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":24,"category_name":30,"create_tm":165},685805,"Numpy - Array - Chapter 11 - Informatics Practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213217/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=WJGutq8YVYrta2iU6yWig7gxHeQ%3D","numpy-array-chapter-11-informatics-practices",1794018711,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":34,"category_name":30,"create_tm":171},685788,"Python Arrays - Learn How to Create, Access, and Modify Lists","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999694760/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=YIHbb7UhztOrsae9atk441vlcB8%3D","python-arrays-learn-how-to-create-access-and-modify-lists",1794018478,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":24,"category_name":30,"create_tm":177},561912,"PicBasic Pro Compiler - Introduction - Getting Started and Command Line Options","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947783274/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=1h3ITxx9Rg9%2B79RiMsJYHl8xbrE%3D","picbasic-pro-compiler-introduction-getting-started-and-command-line-options",1791807245,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":19,"category_name":30,"create_tm":183},685809,"NumPy and Image Processing Primer Discussion - 1","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213275/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=ZAlhXvHZv0yL7B8o0N4GMmwVlzE%3D","numpy-and-image-processing-primer-discussion-1",1794018719,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":34,"category_name":30,"create_tm":189},469298,"Finding My CRS - A Systematic Way of Identifying CRSs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229926544534/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=EzqE7Pr1Nl7DGKd4ixgE2zChXxU%3D","finding-my-crs-a-systematic-way-of-identifying-crss",1790775391,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":29,"category_name":30,"create_tm":195},676249,"Coding with Minecraft - Curriculum Overview - 37 Lessons","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229993227065/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=3GTTn1hRZHrrbTU0Cd2sBXZrDPE%3D","coding-with-minecraft-curriculum-overview-37-lessons",1793775271,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":34,"category_name":30,"create_tm":201},685773,"Lists and Tuples - Chapter 7 - Programming Concepts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000203784/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=OT9MmpCh8fPhYLJplVe1Soj4wTk%3D","lists-and-tuples-chapter-7-programming-concepts",1794018219,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":44,"category_name":30,"create_tm":207},685801,"NumPy User Guide - Release 1.16.6 - An introductory overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=fjRU%2FO5p9GVUmgWn9I%2FN8clY41M%3D","numpy-user-guide-release-1166-an-introductory-overview",1794018701,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":29,"category_name":30,"create_tm":213},685808,"NumPy Reference - Release 1.13.0 - Array Objects","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=%2BvBuk71L6vYZEchgw%2F2aR1o5BR0%3D","numpy-reference-release-1130-array-objects",1794018712,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":219,"category_name":30,"create_tm":220},271057,"Bit-Sliced VLSI Algoriths for Search and Sort","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899441612/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108879&Signature=snB7vEUg0YpcfEsK3BHA6%2FrDHIw%3D","bit-sliced-vlsi-algoriths-for-search-and-sort",14,1789459216]