Questions tagged as 'python'

0
answers

Find number with the lowest number of decimal places between two other numbers

The final part for arithmetic data compression is to find a number, which is among 2 other numbers, and has the fewest digits / decimal places! Example: Number between 0.1234 and 0.1245. The answer is 0.124 Because it is between the two numbe...
asked by 15.11.2018 / 21:54
1
answer

APÍ django-storages dropbox error url pattern

I'm using the following API: link I have everything exactly configured, from the installed lib to the settings of settings.py. The lib 'storages' in INSTALLED_APPS and the three dropbox connection variables: DEFAULT_FILE_STORAGE = '...
asked by 24.11.2018 / 15:56
2
answers

How to generate a graph of temperatures x time of data taken by an arduino?

Good afternoon, I'm trying to use a program in python to read seven temperature values through the serial port with the arduino, so far the program I've done collects the data, saves it to a text file, and when I interrupt the execution it saves...
asked by 02.11.2018 / 22:34
2
answers

How can I display a list of values in a register by applying filters to numeric values?

I have to show all fields with filter in numeric field, I have to choose which numeric field, set lower limit and higher eg: show all parts with price> = 45.50 and price
asked by 20.09.2018 / 15:40
2
answers

Comparison of lowest value in list

My problem seems to be simple but it's bugging my head, lol, there it goes: When I compare my Values list to find the smallest value, it always returns 0, what happens to it? Follow the code below. obs: disregard var tel_maior and minor....
asked by 12.10.2018 / 04:46
1
answer

Interrupt a specific Thread

How do I stop a specific thread? for example: from _thread import * from time import sleep result = 0 def soma(nome, numero, delay): global result while True: result += numero print('{}: {} '.format(nome, result)) sleep(delay) st...
asked by 14.10.2018 / 17:56
0
answers

Random forest with very high accuracy

I'm working with this dataset and I applied random forest to create a pricing model, but the accuracy of the model is getting too high, so I'm wary of anything wrong. Apparently train and test are different, so it was not to give such a high a...
asked by 14.11.2018 / 14:08
0
answers

How to insert weights in a string Python 3 [closed]

Example: I have 20 students with above-average grades being that for mathematics the weight for the approval is 3. And in the human sciences the weight is 2. I looked for some tutorials and did not find anything that is compatible to build...
asked by 21.09.2018 / 17:05
1
answer

problem in converting normal array to numpy

The program organizes is done to organize the rows, based on the value of the third column, I did the program and it worked, but when I use numpy array, it gives the error below. I need to use numpy array because it's part of a larger program th...
asked by 24.08.2018 / 03:36
1
answer

Photo Gallery sorted in Python

Good morning I'm developing a gallery of images listing them from a directory. What I need to do is separate these images or sort them in order of creation. I have a script that generates the images as follows. pessoa_ID_N.jpg where ID is t...
asked by 22.08.2018 / 14:22