swarmplot を使用して単一次元のクラスタリングを作成することにより、power bi と python を使用しようとしています。
私が割り当てたカラースケールを除いて、すべてが完璧です。これは私のコードです。X="Centros" (クロス) と hue="Equipos" (チーム)。
import matplotlib.pyplot as plt
#fig. ax = plt.subplots()
sns.set(style="whitegrid", palette="muted")
sns.swarmplot(x="Centros", hue="Equipos", palette=["red","coral","linegreen","forestgreen"],s=13, data=dataset,hue_order=['00-20','20-40','40-60','60-80','80-100'] )
plt.show()```
[enter image description here][1]
[1]: https://i.stack.imgur.com/CnAqH.png