
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
BUG: Pandas plot does not accept Columns for color keyword Β· Issue #44670 Β· pandas-dev/pandas
Description:
I have checked that this issue has not already been reported. I have confirmed this bug exists on the latest version of pandas. I have confirmed this bug exists on the master branch of pandas. Reproducible Example import pandas as pd df ...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {π}
- Graphic Design
- Style & Fashion
- Technology & Computing
Content Management System {π}
What CMS is github.com built with?
Github.com employs WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
color, mosc, pandas, bug, issue, red, commented, marcogorelli, sign, code, plot, keyword, kindscatter, added, member, contributor, author, consistency, pull, projects, accept, columns, green, dfplotxa, pass, column, sequence, mentioned, edited, edits, points, navigation, requests, actions, security, closed, description, confirmed, exists, blue, thought, enought, colorkeyword, expected, line, triage, reviewed, team, request, docs,
Topics {βοΈ}
org/docs/reference/api/pandas marcogorelli edits member personal information bug comment metadata assignees color strings referred type projects color=df['color'] pull request issue description commented line mosc9575 mentioned projects milestone 1 import pandas color-keyword instance βred triage issue docs pandas plot bug exists removed bug line df instance [βgreen color='color' expected result color recursively add 'color' accept columns latest version master branch 'blue' 'c' argument feature request rgba code = continue working break people' 100% complete relationships pandas //pandas kind='scatter' 'red' 'red'} } pass color= marker points keyword github issue bug [bug] 5 closed 'green'
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- Do you want to submit a pull request?
- Does it work with c= rather than color=?
- Is that documented anywhere?
- Why is it named c instead of color?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:BUG: Pandas plot does not accept Columns for color keyword
articleBody:###
- [ ] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [ ] I have confirmed this bug exists on the master branch of pandas.
### Reproducible Example
```python
import pandas as pd
df = pd.DataFrame({
'A': {1: 6, 2: 2, 3: 1, 4: 8, 5: 6},
'B': {1: 2, 2: 10, 3: 3, 4: 1, 5: 1},
'pos': {1: 1, 2: 2, 3: 4, 4: 1, 5: 1},
'color': {1: 'red', 2: 'blue', 3: 'green', 4: 'red', 5: 'red'}
})
# df >>>
# A B color
# 1 6 2 red
# 2 2 10 blue
# 3 1 3 green
# 4 8 1 red
# 5 6 1 red
df.plot(x='A', y='B', kind='scatter', color=df['color'].values)
# df.plot(x='A', y='B', kind='scatter', color='color')
```
### Issue Description
I tried to plot a scatterplot with different groups, with one color for each group. I thought is is enought to pass the name of the column to the color-keyword, but this throws an error:
`ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not ['color']`
### Expected Behavior
I expect this figure, which was generated using the commented line
`s.plot(x='A', y='B', kind='scatter', color=s['color'].values)`

### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 945c9ed766a61c7d2c0a7cbb251b6edebf9cb7d5
python : 3.9.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.0-8-amd64
Version : #1 SMP Debian 5.10.46-4 (2021-08-03)
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.4
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 58.0.4
Cython : 0.29.24
pytest : 6.2.5
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.3
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.28.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 2021.09.0
fastparquet : None
gcsfs : None
matplotlib : 3.4.3
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.7.1
sqlalchemy : 1.4.23
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.54.0
1
β
</details>
author:
url:https://github.com/mosc9575
type:Person
name:mosc9575
datePublished:2021-11-29T12:34:05.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/44670/pandas/issues/44670
context:https://schema.org
headline:BUG: Pandas plot does not accept Columns for color keyword
articleBody:###
- [ ] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [ ] I have confirmed this bug exists on the master branch of pandas.
### Reproducible Example
```python
import pandas as pd
df = pd.DataFrame({
'A': {1: 6, 2: 2, 3: 1, 4: 8, 5: 6},
'B': {1: 2, 2: 10, 3: 3, 4: 1, 5: 1},
'pos': {1: 1, 2: 2, 3: 4, 4: 1, 5: 1},
'color': {1: 'red', 2: 'blue', 3: 'green', 4: 'red', 5: 'red'}
})
# df >>>
# A B color
# 1 6 2 red
# 2 2 10 blue
# 3 1 3 green
# 4 8 1 red
# 5 6 1 red
df.plot(x='A', y='B', kind='scatter', color=df['color'].values)
# df.plot(x='A', y='B', kind='scatter', color='color')
```
### Issue Description
I tried to plot a scatterplot with different groups, with one color for each group. I thought is is enought to pass the name of the column to the color-keyword, but this throws an error:
`ValueError: 'c' argument must be a color, a sequence of colors, or a sequence of numbers, not ['color']`
### Expected Behavior
I expect this figure, which was generated using the commented line
`s.plot(x='A', y='B', kind='scatter', color=s['color'].values)`

### Installed Versions
<details>
INSTALLED VERSIONS
------------------
commit : 945c9ed766a61c7d2c0a7cbb251b6edebf9cb7d5
python : 3.9.7.final.0
python-bits : 64
OS : Linux
OS-release : 5.10.0-8-amd64
Version : #1 SMP Debian 5.10.46-4 (2021-08-03)
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : en_US.UTF-8
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.4
numpy : 1.20.3
pytz : 2021.1
dateutil : 2.8.2
pip : 21.2.4
setuptools : 58.0.4
Cython : 0.29.24
pytest : 6.2.5
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.3
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.0.1
IPython : 7.28.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 2021.09.0
fastparquet : None
gcsfs : None
matplotlib : 3.4.3
numexpr : 2.7.3
odfpy : None
openpyxl : 3.0.7
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.7.1
sqlalchemy : 1.4.23
tables : 3.6.1
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.54.0
1
β
</details>
author:
url:https://github.com/mosc9575
type:Person
name:mosc9575
datePublished:2021-11-29T12:34:05.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:6
url:https://github.com/44670/pandas/issues/44670
Person:
url:https://github.com/mosc9575
name:mosc9575
url:https://github.com/mosc9575
name:mosc9575
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:6
interactionType:https://schema.org/CommentAction
userInteractionCount:6
External Links {π}(7)
- How much does https://github.blog make?
- How much revenue does https://pandas.pydata.org/docs/whatsnew/index.html bring in?
- What is the monthly revenue of https://user-images.githubusercontent.com/68053396/143868392-11e5de24-d1a7-412d-9404-38a0b2b5afc6.png?
- How much does https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.scatter.html make?
- How much does https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.barh.html#pandas.DataFrame.plot.barh rake in every month?
- What's the financial outcome of https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.plot.barh.html#pandas.DataFrame.plot.bar?
- Profit of https://www.githubstatus.com/
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net