Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108644

Re: Pandas GroupBy does not behave consistently

From Michael Selik <michael.selik@gmail.com>
Newsgroups comp.lang.python
Subject Re: Pandas GroupBy does not behave consistently
Date 2016-05-15 19:03 +0000
Message-ID <mailman.1.1463339026.19823.python-list@python.org> (permalink)
References (19 earlier) <CAGgTfkO-J2y7GdF1bhnHpJW312KA_bwTe9XoVNcYcXpMV3xWDA@mail.gmail.com> <885651822.3710117.1463240251579.JavaMail.yahoo@mail.yahoo.com> <CAGgTfkN5-ZCUFKJYuLOjJvEenZAD-N29hC1ZQBLs7jxj1vZa+w@mail.gmail.com> <1889403023.4028249.1463310300618.JavaMail.yahoo@mail.yahoo.com> <CAGgTfkOCCHH5zudGt+GQVkSwuz8SvwuLfqxqeYPa8cY1aEgG7g@mail.gmail.com>

Show all headers | View raw


On Sun, May 15, 2016 at 7:07 AM David Shi <davidgshi@yahoo.co.uk> wrote:

> Hello, Michael,
>
> Pandas GroupBy does not behave consistently.
>
> Last time, when we had conversation, I used grouby.  It works well.
>
> Now, I thought to re-write the program, so that I can end up with a clean
> script.
>
> But, the problem is that a lot of columns are missing after groupby
> application.
>
> Any idea?
>

I'd guess that the columns lost after a groupby had an inappropriate
datatype for the operation you were doing. If you'd like a more thorough
response, you'll need to post the code you tried and the results you got.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Pandas GroupBy does not behave consistently Michael Selik <michael.selik@gmail.com> - 2016-05-15 19:03 +0000

csiph-web