Posts by JonP • 5 points
4 posts
-
0
votes1
answer31
viewsQ: Return last value of each day in mysql
Hello, I have following values in the database: data - valor 2019-06-03 7:00 9 2019-06-03 12:00 21 2019-06-03 20:00 28 2019-06-02 8:00 11 2019-06-02 12:30 21 2019-06-02 19:50 27 2019-06-01 8:30 10…
-
-1
votes1
answer948
viewsQ: Sort elements of a python dictionary
Hello, I have a csv file, from which I read to a dictionary, the file is as follows: maquina,num,projeto,var,reg,nome,valor br,1,1809123,float,4637,teste1 br,1,1809123,float,4639,teste2…
python-3.xasked JonP 5 -
0
votes3
answers62
viewsA: Function returns value only the first time it is executed
Performing a survey I found the following link One of the answers was the following: Store Generator results in a data structure in memory or disk that you can iterate again: dados_modbus =…
python-3.xanswered JonP 5 -
0
votes3
answers62
viewsQ: Function returns value only the first time it is executed
This is my code: import conector_modbus as conector_modbus import leitor_csv as leitor_csv address_file = 'address.csv' dados = leitor_csv.leitor(address_file,"dicionario") def coletar_dados(): for…
python-3.xasked JonP 5