[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-685805-105":59,"doc-detail-685805-en":130,"doc-similar-685805":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-array-chapter-11-informatics-practices","Numpy - Array - Chapter 11 - Informatics Practices","","NumPy is introduced as the core scientific computing library in Python, centered on multidimensional array objects and their operations. The chapter explains the concept of arrays as grids of same-type values indexed by nonnegative integers, and discusses dimensions, rank, and shape. It covers creating 1D arrays using array and common functions (empty, zeros, ones, full, random) and also generating 1D data from strings, buffers, and ranges via arange. It compares NumPy arrays with Python lists and demonstrates array copying behavior, slicing examples, and joining arrays through concatenate().",{"@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-array-chapter-11-informatics-practices/685805/",{"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-array-chapter-11-informatics-practices/685805.png","ImageObject",300,407,{"name":92,"@type":93},"Jasmine","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-18","2026-11-07",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does NumPy stand for, and why is it used in Python?","Question",{"text":112,"@type":113},"NumPy stands for Numerical Python and is used as the core library for scientific computing in Python, providing support for multidimensional array objects.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are dimensions, rank, and shape defined for a NumPy array?",{"text":117,"@type":113},"The number of dimensions is the rank of the array. The shape depends on a tuple of integers that specifies the size along each dimension.",{"name":119,"@type":110,"acceptedAnswer":120},"How do NumPy arrays differ from Python lists?",{"text":121,"@type":113},"NumPy arrays work with homogeneous types and cannot easily add/remove elements like lists, while Python lists can contain heterogeneous types and support adding/removing elements.","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},685805,1794018711,{"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":24,"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},2336478487870,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Chapter 11 :  \nInformatics Practices  \nClass XI ( As per CBSE Board)  \nNumpyArray  \nNew  \nSyllabus  \n2019-20  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNumPy stands for Numerical Python. It is the core library for scientific computing in Python. It consist of multidimensional array objects, and tools for working with these arrays.  \nArrays  \nNumpy Array is a grid of values with same type, and is indexed by a tuple of nonnegative integers. The number of dimensions of it ,is the rank of the array; the shape of an array depends upon a tuple of integers giving the size of the array along each dimension.  \nNote:- Befor numpy based programming , it must be installed. It can be  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \ninstalled using >pip install numpy command at command prompt  \nNUMPY-ARRAY  \n1 D ARRAY  \nAny arrays can be single or multidimensional. The number of subscript/index determines dimensions of the array. An array of one dimension is known as a one-dimensional array or 1-D array  \nIn above diagram num is an array ,it’s first element is at 0 index position ,next element is at 1 and so on till last element at n-1 index position.At 0 index position value is 2 and at 1 index position value is 5 .  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNUMPY-ARRAY  \n1 D ARRAY  \nCreation of 1D array  \nOne dimension array can be created using array method with list object with one dimensional elements.  \ne.g. program  \nimport numpy as np  \na = np.array([500, 200 , 300]) print(type(a))  \nprint(a.shape)  \nprint(a[0], a[1], a[2]) a[0] = 150  \nprint(a)  \n\\# Create a 1D Array  \n\\# Prints \"\u003Cclass 'numpy. ndarray'>\"  \n\\# Prints \"(3,)\" means dimension of array  \n\\# Prints \" 500 200 300 \"  \n\\# Change an element of the array  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNUMPY-ARRAY  \n1 D ARRAY  \nCreation of 1D array Using functions  \nimport numpy as np  \np = np.empty (5) \\# Create an array of 5 elements with random values print(p)  \na1 = np.zeros (5) \\# Create an array of all zeros float values  \nprint(a1) \\# Prints \"[0 . 0 . 0 . 0 . 0 .]\"  \na2 = np.zeros(5, [dtype = np.int](dtype = np.int)) \\# Create an array of all zeros int values print(a2) \\# Prints \"[0 . 0 . 0 . 0 . 0 .]\"  \nb = np.ones (5) \\# Create an array of all ones  \nprint(b) \\# Prints \"[1 . 1 . 1 . 1 . 1 .]\"  \nc = np.full (5, 7) \\# Create a constant array  \nprint(c) \\# Prints \"[7 7 7 7 7]\"  \ne = np. random. random (5) \\# Create an array filled with random values  \nprint(e)  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNUMPY-ARRAY  \n1 D ARRAY  \nDifference between Numpy array and list  \n\n| NUMPY ARRAY | LIST |\n| --- | --- |\n| Numpy Array works on | Python list are made for |\n| homogeneous types | heterogeneous types |\n| Python list support adding and removing of elements | numpy.Array does not support adding and removing of elements |\n| Can’t contain elements of different | can contain elements of different |\n| types | types |\n| smaller memory consumption | more memory consumption |\n| better runtime | Runtime not speedy |\n\n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNUMPY-ARRAY  \n1 D ARRAY  \nCreate 1D from string  \nimport numpy as np  \ndata =np.fromstring('1 2', dtype=int, sep =' ')  \nprint(data)  \nNote:-in fromstring dtype and sep argument can be changed. Create 1D from buffer  \nnumpy array from range  \nnumpy.arange(start, stop, step, dtype)  \n\\#program 1  \nimport numpy as np  \nx = np.arange (5) \\#for float value specify dtype = float as argument print(x) \\#print [0 1 2 3 4]  \n\\#program 2  \nimport numpy as np  \nx = np.arange (10,20 ,2)  \nprint (x) \\#print [10 12 14 16 18]  \n[Visit : python.mykvs.in](Visit : python.mykvs.in) for regular updates  \nNUMPY-ARRAY  \n1 D ARRAY  \nCreate 1D from array  \nCopy function is used to create the copy of the existing array.  \ne.g. program  \nimport numpy as np  \nx = np.array([1, 2","cbCaiqgQsDus6b0b","https://ap.wps.com/l/cbCaiqgQsDus6b0b","pdf",490202,21,"English","# Informatics Practices\n## NumPy basics: arrays, dimensions, rank, shape\n## Creating 1D arrays: array() and NumPy functions\n## Creating 1D arrays from strings and ranges\n## Copying, slicing, and joining arrays","[{\"question\":\"What does NumPy stand for, and why is it used in Python?\",\"answer\":\"NumPy stands for Numerical Python and is used as the core library for scientific computing in Python, providing support for multidimensional array objects.\"},{\"question\":\"How are dimensions, rank, and shape defined for a NumPy array?\",\"answer\":\"The number of dimensions is the rank of the array. The shape depends on a tuple of integers that specifies the size along each dimension.\"},{\"question\":\"How do NumPy arrays differ from Python lists?\",\"answer\":\"NumPy arrays work with homogeneous types and cannot easily add/remove elements like lists, while Python lists can contain heterogeneous types and support adding/removing elements.\"}]","Numpy - Array - Chapter 11 - Informatics Practices | PDF",53,[146,150,154],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f8ec2da69d050bba5f529baf46d246ed.webp",983,737,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/6e3bf5fc9e26f2e536d6b7b62a9d57a5.webp",982,736,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/65a8a7d32b76436a36073b078d3f6e3e.webp",981,735,{"list":159,"token":66},[160,166,172,178,184,190,195,201,207,213],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":29,"category_name":30,"create_tm":165},685790,"NumPy and SciPy Tutorial - Installation and Array Fundamentals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000209033/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=b4PE%2FSUhFsY%2FukunEFFClMKqv4Y%3D","numpy-and-scipy-tutorial-installation-and-array-fundamentals",1794018485,{"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=1796108819&Signature=rJTH5rJgFwu2GL6xQMO9ZeakX30%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":39,"category_name":30,"create_tm":177},685810,"Lecture 3 - NumPy basics - Arrays and Vectorized Computation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213289/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=os7M4Q1D5U7oJjeHcmly5Zh0hFc%3D","lecture-3-numpy-basics-arrays-and-vectorized-computation",1794018719,{"doc_id":179,"doc_title":180,"file_type":137,"home_preview_img_url":181,"slug":182,"view_count":44,"category_name":30,"create_tm":183},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=1796108819&Signature=lMlk3kcQkr8PVXzGPr3Vp9YD3r8%3D","numpy-user-guide-release-1166-an-introductory-overview",1794018701,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":44,"category_name":30,"create_tm":189},685802,"NumPy User Guide - Release 2.3.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213058/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=2WoZ2l77dojkrcsWZhK5lvRAsJ8%3D","numpy-user-guide-release-230",1794018702,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":19,"category_name":30,"create_tm":177},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=1796108819&Signature=rwE3QEKUFOAamEIVtqOQP8ogct8%3D","numpy-and-image-processing-primer-discussion-1",{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":34,"category_name":30,"create_tm":200},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=1796108819&Signature=Ss8GfQR3UInO%2BemyFvK2%2FYP100g%3D","finding-my-crs-a-systematic-way-of-identifying-crss",1790775391,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":19,"category_name":30,"create_tm":206},697950,"unit06-1-Arrays - Arrays in Memory Lecture Notes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141905/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=oQe5DPuTO4KTQw38HLXL8KQMnmM%3D","unit06-1-arrays-arrays-in-memory-lecture-notes",1794446318,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":81,"category_name":30,"create_tm":212},697953,"Learn Python Data Structures & Algorithms Visually - Volume 1 - Trees, Linked Lists, Strings, Arrays","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010141919/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=%2FgKPV%2BZoNaln70ZpdKA2qnnAODs%3D","learn-python-data-structures-algorithms-visually-volume-1-trees-linked-lists-strings-arrays",1794446325,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":218,"category_name":30,"create_tm":219},389903,"Python For Data Science Cheat Sheet - SciPy Linear Algebra","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229917144105/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108819&Signature=t%2FGkV5xM2loRYsYHPZh3HyVgL%2Bg%3D","python-for-data-science-cheat-sheet-scipy-linear-algebra",16,1790328319]