Pertpy: pt.pl.guide.heatmap doesn't work with sparse matrix?

Hi,
I’m using Pertpy 0.6.0, and tried running the exact example seen in the guide rna tutorial (The papalexi_2021 data).

This is what happens:

Only when I define the X attribute to be the actual matrix (and not the sparse form):

gdo.X = gdo.X.A.copy()

the function can run and give the result.
I’ll appreciate your help with that… is that expected behavior?
Thanks,
Noam

Dear Noam,

I’ll take a look at report back very soon. Thanks for the report!

Will be fixed as part of the next release.