Re: mask and proper index

2019-02-04 Thread Peter Otten
Diego Avesani wrote: > If I can ask, due to the fact that I am new to thins kind of forum. > In this moment, I have another problem related to the data I am working > on. Should I write another post? You should start a new thread for a new problem, even if for you it is part of the same project

Re: mask and proper index

2019-02-04 Thread Diego Avesani
Dear all, Dear Peter, thanks for you suggestions. Next time, I will try to set-up a proper example in order to post it and explain better my problem. You understood perfectly what was my problem. Thanks a lot, indeed it seems to work. If I can ask, due to the fact that I am new to thins kind

Re: mask and proper index

2019-02-03 Thread Peter Otten
diego.aves...@gmail.com wrote: > Dear all, > > I am trying to apply a mask to my dataframe: > > mask = (df['datatime'] > start_date) & (df['datatime'] <= end_date) > df = df.loc[mask] > > > It seems to work pretty well. > > After that I crate the cumulative of its element as: > > > PP_cumPP