我必須根據二進制變量從數據框中繪制兩個 distplots:df_train \.groupby("Binary")["Continuous"] \.apply(sb.distplot, hist=False)plt.show()如果我在 apply 中傳遞參數label=,則相同的標簽將應用于兩個圖。我如何告訴他根據二值特征的值顯示標簽?
應用熊貓后在 seaborn 中設置圖例
慕田峪7331174
2023-05-16 15:05:22