Re: [Tutor] How to add a new column to a hierarchical dataframe grouped by groupby

2013-10-21 Thread Mark Lawrence
On 21/10/2013 20:38, Boris Vladimir Comi wrote: This is the Python tutor mailing list so it is essentially aimed at beginners to programming and/or Python, so please ask your pandas specific question on the google group here https://groups.google.com/forum/#!forum/pydata or the equivalent mail

[Tutor] How to add a new column to a hierarchical dataframe grouped by groupby

2013-10-21 Thread Boris Vladimir Comi
The following script try to calculate the resulting average of the direction and magnitude of the wind. My monthly dataframe has the following column: data FechaHoraDirViento MagViento Temperatura Humedad PreciAcu 0 2011/07/01 00:003186.621.22 1