Table of Contents
NumPy Tutorial
Table of Contents
NumPy Tutorial
NumPy Array Creation Methods in Hindi
Creating NumPy Array
NumPy में Array को create करने के लिए array() function का use किया जाता है, इसमे square bracket में data pass करते है तो वो Array return करता है।
Array filled with 0’s :
zeros() method का use करके हम एक ऐसा Array create के सकते है जिसमे सारे elements “0” हो।
Array filled with 1’s
ones() method का use करके हमे एक ऐसा Array create कर सकते है जिसमे सारे elements “1” हो।
full() Method
full() एक ऐसा method है जिसका use करके हम किसी specific number का Array create कर सकते है।
An array with a range of elements
arrange() Method
अगर हमे किसी range में Array को create करना हो तो हम arrange() method का use करेंगे, इसमे range की starting और ending value दिया जाएगा साथ ही हम stap value भी दे सकते है।
linspace() Method
linespace() method का use भी arrange() method जैसा है but इसमे array elements के बीच का space fixed रहते है।
logspace() Method
Evenly spaced numbers on a logarithmic (exponential) scale generate करता है।
Array diagonal element filled with 1’s
eye(): eye() method की help से हम ऐसा metrix बना सकते है किसके diagonal मे सिर्फ 1 हो और इस method मे हम 1 को sift भी रक सकते है।
identity(): identity() method भी eye() method की तरह ऐसा matrix बनाता है जिसके diagonal मे 1 हो but इसमे हम 1 को sift नहीं कर सकते है।
- 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

Table of Contents All Chapters 1. Personal Area Network 2. Local Area Network 3. Campus Area Network 4. Metropolitan Area...

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

Table of Contents All Chapters 1. Special Logic Gate 2. XOR Gate 2.1. XOR Gate Truth Table 3....

Table of Contents All Chapters 1. Universal Logic Gates 2. NOR Gate 2.1. NOR Gate Truth Table 3....

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

Table of Contents All Chapters 1. Simplification 2. Simplification using Boolean Algebra Theorems 3. Simplification using K-map Digital Electronics...

Table of Contents All Chapters 1. Identity Laws 2. Null Laws 3. Domination Laws 4. Idempotent Laws 5. Complement Laws...