decoupler.melt

decoupler.melt(df)

Function to generate a long format dataframe similar to the one obtained in the R implementation of decoupler.

Parameters
dfdict, tuple, list or DataFrame

Output of decouple, of an individual method or an individual dataframe.

Returns
mDataFrame

Melted long format dataframe.