Useful Links
Computer Science
Data Science
NumPy Library
1. Introduction to NumPy
2. The NumPy ndarray Object
3. Data Types in NumPy
4. Array Creation Techniques
5. Indexing and Slicing
6. Array Manipulation and Reshaping
7. Universal Functions (ufuncs)
8. Array Aggregation and Statistics
9. Broadcasting
10. Linear Algebra Operations
11. Random Number Generation
12. File Input and Output
13. Advanced NumPy Features
14. NumPy Ecosystem Integration
15. Best Practices and Common Pitfalls
Array Creation Techniques
Creating Arrays from Existing Data
Using np.array()
From Lists
From Tuples
From Nested Sequences
Copy vs. Reference Behavior
Using np.asarray()
Using np.asanyarray()
Intrinsic Creation Functions
Range-based Creation
np.arange()
np.linspace()
np.logspace()
np.geomspace()
Constant Value Arrays
np.zeros()
np.zeros_like()
np.ones()
np.ones_like()
np.full()
np.full_like()
np.empty()
np.empty_like()
Special Matrix Creation
Identity and Diagonal Matrices
np.eye()
np.identity()
np.diag()
Triangular Matrices
np.tri()
np.tril()
np.triu()
Random Array Creation
Basic Random Arrays
Seeded Random Generation
Random Sampling from Distributions
Previous
3. Data Types in NumPy
Go to top
Next
5. Indexing and Slicing