Skip to content

BUG: groupby().plot(kind='scatter') broken #11805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jorisvandenbossche opened this issue Dec 9, 2015 · 0 comments
Closed

BUG: groupby().plot(kind='scatter') broken #11805

jorisvandenbossche opened this issue Dec 9, 2015 · 0 comments
Labels
Regression Functionality that used to work in a prior pandas version Visualization plotting
Milestone

Comments

@jorisvandenbossche
Copy link
Member

From SO: http://stackoverflow.com/questions/34123075/pandas-scatterplot-not-working-as-intended

import pandas as pd
url = 'https://raw.githubusercontent.com/cs109/2014_data/master/diamonds.csv'
diamonds = pd.read_csv(url, sep = ',', index_col=0)
diamonds.groupby('color').plot(kind='scatter', x='carat', y='price')

does not give you a scatter plot anymore (as an illustration, notebook with pandas 0.16.2 and pandas 0.17.0 )

This worked fine in pandas 0.16.2, but not anymore in 0.17.0 (or master). With using the new accessor syntax: diamonds.groupby('color').plot.scatter(x='carat', y='price') it still works.

Possibly related to the accessor plotting? @shoyer

cc @TomAugspurger @sinhrks

@jorisvandenbossche jorisvandenbossche added Visualization plotting Regression Functionality that used to work in a prior pandas version labels Dec 9, 2015
@jorisvandenbossche jorisvandenbossche added this to the 0.18.0 milestone Dec 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Regression Functionality that used to work in a prior pandas version Visualization plotting
Projects
None yet
Development

No branches or pull requests

1 participant