I wanna to draw scatter plot by altair to my dataframe.
In my dataframe (=df) if df[βaβ] = b, I draw circle point and if df[βaβ] = c, I draw triangle point.
I divided dataframe into column [βaβ] = b and column [βaβ] = c and drew two altairs. but I really want to make simple code.
So please tell me to one altair contains two shape (circle, triangle).
This is my code.
df_b = df[df[βaβ] == βbβ]
df_c = df[df[βaβ] == βcβ]
b = alt.Chart(df_b).mark_circle(size=50).encode(
x=alt.X(βy:Qβ, axis=None),
y=alt.X(βx:Qβ, axis=None)
)
c = alt.Chart(df_c).mark_point(shape=βtriangleβ, filled=True, size=70).encode(
x=alt.X(βy:Qβ, axis=None),
y=alt.X(βx:Qβ, axis=None)
)