# Create plot with color by category/value of a column

**URL:** <https://community.plotly.com/t/create-plot-with-color-by-category-value-of-a-column/9195>\
**Category:** 📊 Plotly Python\
**Created:** [March 25, 2018, 6:58am UTC](https://community.plotly.com/t/create-plot-with-color-by-category-value-of-a-column/9195 "2018-03-25T06:58:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![steves\_pg](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@steves\_pg](https://community.plotly.com/u/steves_pg)\
**Post date:** [March 25, 2018, 6:58am UTC](https://community.plotly.com/t/create-plot-with-color-by-category-value-of-a-column/9195/1 "2018-03-25T06:58:42Z")

</div>

I have a tabular data set that have 10 columns and 100K samples.  
One of the columns is a weekday - Sunday, Monday …

I want to plot a scatter plot but to color the points according to the weekday column.  
If a point was on Wednesday color it green, Sunday will be red etc.

I know that in ggplot2 in R it’s super simple, in Python too.

Please guide me how can I do this here on plotly.

Thanks in advance!
