Edit Template

NumPy Array Indexing Slicing in Hindi

1D Array Indexing

1D Array में Indexing बिल्कुल python list की तरह होती है, index 0 से start होता है और negative index -1 से start होता है जो array का last element होता है।

हम एक साथ multiple elements को access करने के लिए multiple index भी दे सकते है।

हम condition के basis पर filtering (elements access) कर सकते है।

2D Array Indexing

2D Array Indexing में हम row और column दोनों के index number को देते है बाकी इसमे भी index 0 से start होता है और negative index -1 से start होता है जो array का last element होता है।

3D Array Indexing

3D Array Indexing में हम row और column के साथ depth के भी index number को देते है बाकी इसमे भी index 0 से start होता है और negative index -1 से start होता है जो array का last element होता है।

1D Array Slicing

1D Array की slicing बिल्कुल python list जैसे होती है जिसमे 3 arguments दिए जाते है, “start” (जिसका by default value 0 index होता है), “end” (जिसका by default value -1 index होता है) और “stap” (जिसका by default value 1 होता है)

2D Array Slicing

2D Array की slicing भी 1D Array जैसा ही होता है but इसमे हमे “start” और “end” में row & column दोनों का index दिया जाता है।

3D Array Slicing

3D Array की slicing करने के लिए हम “start”, “end” के साथ “stap” भी देते है जो की column को slice करता है इसका general syntax “array[depth_slice, row_slice, column_slice]” होता है। 

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