I'm using sns.clustermap to plot a dataframe from a panda dataframe. I want to replace all the instances of "alpha" and "beta" to the lowercase latin letters, but I can't do it nomatter how I try. I tried to code it in Latex. Here is an example code:
df = pd.DataFrame(data = [[1, 2], [3, 4]], index = ['5alpha-androstan-3beta,17alpha-diol disulfate', 'hippurate'])
df.index = df.iloc[:,0].index.str.replace('alpha', '$\alpha')
sns.clustermap(df)
Thanks!