Sparse Matrix - Effect and Solution
The idea is really simple, just look at some online resources like https://en.m.wikipedia.org/wiki/Sparse_matrix

The implementation is also really simple. For pandas this page might help you https://pandas.pydata.org/pandas-docs/stable/sparse.html