
|
Feature |
Python List | NumPy Array |
| Data Types | Can store different types (mixed) |
Stores homogeneous types (same) |
|
Memory |
Consumes more memory | Highly memory-efficient |
| Performance | Slower for mathematical operations |
Optimized for fast computations |
|
Functionality |
Built-in general purpose |
Specialized for linear algebra |
|
Keyword/Function |
Primary Use Case |
|
Pandas |
Data manipulation and analysis |
| NumPy |
Mathematical and array operations |
|
Scikit-learn |
Implementing machine learning models |
|
Matplotlib |
Creating static visualisations |
| Lambda |
Writing quick, one-line functions |
| Merge |
Combining datasets based on keys |