Posts by Matheus Frota • 11 points
2 posts
-
0
votes2
answers354
viewsA: Improve python apply performance with lambda
Erick, it’s all right? You can replace the query with the groupBy method. Run this code to verify that what you really wanted has been achieved. df[(df['DATA']<=data) & (df['DATA'] > d)…
-
1
votes1
answer1847
viewsQ: How to save the obtained medias in a dataframe, in a new column containing the averages of this dataframe using pandas?
Good night, I have a problem trying to save values of the average of a df, in a single column. An example of how I wanted you to stay was: Dataframe In this first part, I just opened my dataframe…