Edit Template

NumPy Array in Hindi

What is Ndarray in Hindi

NumPy का main object “ndarray” (N-dimensional Array) है जो एक fast और efficient data structure है। ये एक homogeneous data structure है मतलब इसमे सारे elements same type के होते है।

Creating NumPy Array

NumPy में Array को create करने के लिए array() function का use किया जाता है, इसमे square bracket में data pass करते है तो वो Array return करता है।

One-dimensional Array (1D Array)

NumPy में 1D Array create करने के लिए array() function में single square bracket का use करते है।

Two-dimensional Array (2D Array)

NumPy में 2D Array create करने के लिए array() function में double square bracket का use करते है।

Three-dimensional Array (3D Array)

NumPy में 3D Array create करने के लिए array() function में triple square bracket का use करते है।

Multi-dimensional Array

NumPy में Multi-dimensional Array create करने के लिए array() function में multiple square bracket का use करते है।

Array Attributes

NumPy में कई सारे इसे Attributes होते है जिनका use करके हम किसी Array के information को देख सकते है।

.shape: “shape” attribute किसी Array के shape (number of rows and columns) को बताता है।

.ndim: “ndim” attribute किसी Array के dimension को बताता है।

.size: “size” attribute किसी Array में total number of elements को बताता है।

.dtype: “dtype” attribute किसी Array के data type को बताता है।

.itemsize: “item” attribute किसी Array के element के size (bytes) को बताता है।

.nbytes: “nbytes” attribute किसी Array द्वारा total memory usage को बताता है।

Add a comment...

  • All Posts
  • Artificial Intelligence
  • Computer Fundamentals
  • Computer Networks
  • Data Analytics
  • Data Science
  • DBMS
  • Deep Learning
  • Digital Electronics
  • DSA with Python
  • Excel
  • Exercise
  • Git & Github
  • Machine Learning
  • Matplotlib
  • Natural Language Processing
  • NumPy
  • Operating System
  • Pandas-s
  • Power BI
  • Python Tutorial
  • Scikit-learn
  • Seaborn
  • SQL & MySQL
computer networks

Table of Contents All Chapters 1. OSI Model      1.1. Physical Layer      1.2. Data Link Layer  ...

computer networks

Table of Contents All Chapters 1. Topology 2. Types of Topology      2.1. Point to Point Topology    ...

computer networks

Table of Contents All Chapters 1. Data Communication 2. Types of Data Communication      2.1. Simplex      2.2....

digital electronics number system

Table of Contents All Chapters 1. Logic Gate 2. AND Gate      2.1. AND Gate Truth Table 3. OR...

Edit Template

Sign up to track your learning

Login to continue your learning tracking

To reset your password, please enter your email address or username below.

Scroll to Top