SciPy TutorialLesson 6Free preview
SciPy Sparse Data
This lesson is part of SciPy · All levels
Summary
Sparse data is data that is mostly zero-valued, commonly found on large matrices such as grid charts or matrix coefficients of equations. SciPy provides scipy.sparse modules with formats such as CSR and CSC that only store non-zero elements. This approach suppresses memory usage and speeds up matrix operations.
Key points
- Sparse matrices dominated by zero values
- It provides CSR, CSC, and COO formats
- Only non-zero elements are stored so memory is saved.
- Operations like matrix multiplication can be much faster.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.