Posts by Sérgio B. • 13 points
3 posts
-
0
votes3
answers84
viewsQ: Dataframe Pandas - How to use a previous value other than NA for calculation
Having a dataframe as the following example: df = pd.DataFrame([['A',1,100],['B',2,None],['C',3,None],['D',4,182],['E',5,None]], columns=['A','B','C']) A B C 0 A 1 100.0 1 B 2 NaN 2 C 3 NaN 3 D 4…
-
2
votes2
answers271
viewsA: Python script run every 1 second for 3 hours in a row
In my view it has two forms: Internal loop in the script You can put your code inside a loop with a timer like this: import time while True: ... seu script aqui time.sleep(1) You could use the…
python-3.xanswered Sérgio B. 13 -
-5
votes2
answers334
viewsA: What is a Murmurhash?
It’s a noncryptographic algorithm created by Austin Appleby. It is designed to perform highly in the use of search and content identifications but not for security encryption Has libs for various…