
Meet Pandas: Converting DataFrame to CSR Matrix
March 08, 2022 | 2 min readThis post shows how to convert a DataFrame of user-item interactions to a compressed sparse row (CSR) matrix, the most common format for sparse matrices.
Under the sea, in the hippocampus's garden...
![[object Object]](/static/2d0f4e01d6e61412b3e92139e5695299/e9fba/profile-pic.png)

This post shows how to convert a DataFrame of user-item interactions to a compressed sparse row (CSR) matrix, the most common format for sparse matrices.

This post introduces how to sample groups from a dataset, which is helpful when you want to avoid data leakage.

This post introduces the Pandas method of `query`, which allows us to query dataframes in an SQL-like manner.

This post summarizes how to group data by some variable and draw boxplots on it using Pandas and Seaborn.

Have you ever confused Pandas methods `loc`, `at`, and `iloc` with each other? It's no more confusing when you have this table in mind.