7NiteN
7NiteN
Sep 4, 2018 · 1 min read

Thank you for really good hints and article. I think there is a mistake in last part. Coloring is dependent on variable in for cycle not on category. I solved similar problem and I created new object same as category:

pal = [‘#FF0040’,’#07FFBC’]
colors = df.[category].apply(lambda x: pal[0] if x == 0 else pal[1])

    7NiteN

    Written by

    7NiteN