Posts by Thales Almeida • 102 points
8 posts
-
0
votes1
answer782
viewsA: Initial values of an exponential moving average in python pandas
I do not understand why my question was negative. But after some time I was able to calculate the exponential moving average starting with an arithmetic mean approximation for the first term and…
-
1
votes2
answers39
viewsA: Delete string snippet whenever Python repeats
I didn’t take the performance test, but in general using pre-built functions is preferable to using the apply, only with the replace gets like this: df['Nome da Seguradora'].replace({'Soja_2020.xls'…
-
3
votes1
answer62
viewsA: What exactly does this Python statement do?
In the example you are passing a list of chaves with the names of the columns you want to extract from Dataframe data and from these columns you extract what you have inside as Numpy values through…
-
-2
votes1
answer782
viewsQ: Initial values of an exponential moving average in python pandas
Hello, I’m trying to implement the calculation of an exponential moving average with the python pandas package. I know there are several ways of exponential weighting for a moving average, but the…
-
3
votes2
answers339
viewsQ: How to remove an object from a list during an iteration over the list itself
I need to remove an item from a list during an iteration over the list itself. The reason to remove during the loop is that if this item remains may end up triggering other triggers within the loop…
-
1
votes1
answer58
viewsA: How to make the number of executions of an algorithm a function of processing capacity and not of time?
Hello, you asked for ideas and suggestions. But your code is not very clear at least for me. But from what I understand you want a routine that calls a function at predetermined times on a single…
-
0
votes2
answers66
viewsA: How to input two related items into a Code
The best way to do this is by using the object properties of Python, which is the great strength of the language. To understand more about using object-oriented python I recommend this series here:…
pythonanswered Thales Almeida 102 -
0
votes1
answer792
viewsA: How to compare python array in an array list and return the same or nearest array
From what I understood from your question: you want to compare element-element a 'search' reference vector with a series of B’s vectors and locate those that meet their error margin for all…