← Back to NumPy Course | Chapter 1: Getting Started | Lesson 1 of 7

NumPy क्या है

NumPy एक toolbox है जो Python को numbers की बड़ी tables जल्दी handle करने देता है, वैसे ही जैसे एक spreadsheet करती है, लेकिन code से।

NumPy क्या है

NumPy (Numerical Python) Python में numerical computing के लिए foundational library है। यह ndarray देता है, एक fast multi-dimensional array, साथ में सैकड़ों functions जो एक साथ पूरे arrays पर operate करते हैं।

Pandas, SciPy, scikit-learn, और Matplotlib जैसी libraries सब इसके ऊपर built हैं।

Note: NumPy का core C में लिखा है, यही वजह है array operations near-C speed पर चलते हैं जबकि आप friendly Python लिखते हैं।

उदाहरण: What is NumPy

python
import numpy as np

a = np.array([10, 20, 30, 40])
print("Array:", a)
print("Type:", type(a))
print("Doubled:", a * 2)

# Output:
# Array: [10 20 30 40]
# Type: <class 'numpy.ndarray'>
# Doubled: [20 40 60 80]
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the view already swaps in the hi_ translation fields (or blanks these out if untranslated), so this renders correctly for both languages without a lang_code check here. #}
आम गलतियां
  1. यह सोचना कि NumPy एक Python library की बजाय एक separate language है
  2. यह भूल जाना कि NumPy arrays एक data type hold करते हैं, Python lists के उलट
  3. vectorized operations इस्तेमाल करने की बजाय arrays पर element by element loop करना
चैप्टर सारांश
  • NumPy numerical computing के लिए Python की core library है
  • इसका central object ndarray है
  • यह एक साथ पूरे arrays पर operate करता है (vectorization)
  • Pandas, SciPy, और scikit-learn इस पर build होते हैं
🔒

Chapter Quiz — Complete all 7 topics to unlock

0/7 topics done

Complete these topics first:

Login to run this code

C/C++/Java/PHP execution requires a free account. Your code is saved — you'll land right back in the editor after logging in.