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

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

Comments

Projects
None yet
1 participant

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 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