Table of Contents
NumPy Tutorial
Table of Contents
NumPy Tutorial
NumPy File Input Output in Hindi
NumPy मे ऐसे कई Method होते है जिसकी help से हम किसी array को .npy या text/csv file मे save कर सकते है और इन files से array को NumPy मे load भी कर सकते है।
Saving Array in File
NumPy में किसी array को binary (.npy) file में save करने के लिए save() method का use किया जाता है।
किसी array को text/csv file में save करने के लिए savertxt() method का use करते है, इसमे “array_name.csv”, array, delimiter=”,” और fmt=”%d” को as a parameter दिया जाता है “fmt” में “%d” की जगह कोई और data type specifier भी दिया जा सकता है।
Loading Array From a File
किसी .npy file से array को NumPy में load करने के लिए load() method का use किया जाता है।
किसी text/csv file से array को NumPy में load करने के लिए loadtxt() method का use किया जाता है, इसमे “file_name.csv” और delimeter=”,” को as a parameter दिया जाता है। अगर array में कोई value missing है तो error मिलता है।
किसी text/csv file से array को NumPy में load करने के लिए loadtxt() method का use किया जाता है, इसमे “file_name.csv”, delimeter=”,” और dtype=int को as a parameter दिया जाता है। ये array के missing values को handle कर सकता है।
Compressed Multiple Array
NumPy में multiple array को compressed (.npz) file में save करने के लिए savez() method का use किया जाता है।
- 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...