[Tutor] R: Re: Create a pivot table (Peter Otten)
Michael Selik
michael.selik at gmail.com
Fri May 20 12:16:06 EDT 2016
On Fri, May 20, 2016 at 7:16 AM jarod_v6--- via Tutor <tutor at python.org>
wrote:
> Thanks s much for the help. I want to obtain table like this:
>
>
> >csv.writer(sys.stdout, delimiter="\t").writerows(table)
> > A100 D33 D34 D35 D36 D37 D38 D39
> >A 5 0 ...
> >B 2 2 ...
> >C 0 ..
> >
> I have tried the pandas way but unfortunately there is many duplicates.
>
If pandas is raising an error, it's possible a "pivot" is not what you
want. What's the code you tried? What's the error message?
More information about the Tutor
mailing list