Skip to content
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

BUG: inconsistent name for returned Series in groupby #12363

Closed
jreback opened this issue Feb 17, 2016 · 1 comment
Closed

BUG: inconsistent name for returned Series in groupby #12363

jreback opened this issue Feb 17, 2016 · 1 comment
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Feb 17, 2016

I would think [7] and [8] would be identical. Note this is true for all ops I have looked at, so it is a general issue.

In [6]:         df = DataFrame({'A': ['foo', 'bar', 'foo', 'bar',
                              'foo', 'bar', 'foo', 'foo'],
                        'B': ['one', 'one', 'two', 'two',
                              'two', 'two', 'one', 'two'],
                        'C': np.random.randn(8) + 1.0,
                        'D': np.arange(8)})

In [7]: df.groupby(['A']).B.count()
Out[7]: 
A
bar    3
foo    5
Name: B, dtype: int64

In [8]: df.B.groupby(df.A).count()
Out[8]: 
A
bar    3
foo    5
dtype: int64
@jreback jreback added this to the Next Major Release milestone Feb 17, 2016
@jreback
Copy link
Contributor Author

jreback commented Feb 17, 2016

xref #8093

@jreback jreback modified the milestones: 0.18.1, Next Major Release Apr 12, 2016
jreback added a commit to jreback/pandas that referenced this issue Apr 21, 2016
closes pandas-dev#12738

BUG: allow df.groupby(...).resample(...) to return a Resampler groupby object

closes pandas-dev#12486

BUG: consistency of name of returned groupby

closes pandas-dev#12363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant