Questions tagged as 'python-3.x'

1
answer

Sort classification_report of sklearn.metrics

I can not find the way to order the results in ascending or descending% of classification_report by attributes other than the label, such as the fields precision or support . precision recall f1-score suppo...
asked by 26.05.2017 / 00:23
0
answers

How to change the order in which it is printed in a program with MultiHilos?

Paralleled program, which uses n independent threads to process a given list of m requests. The threads take the requests in the order they are given in the entry. If there is a free thread, it immediately takes the next request fr...
asked by 15.04.2017 / 23:44
1
answer

Multi-thread Imperative programming and sockets

I know the threads at the theoretical level, I know there are two modules to use them, one is low level and the other high level, the first is threading and the second is thread, this I have seen in a wiki, after that I know that there are many...
asked by 15.04.2017 / 14:10
0
answers

How can I continue entering values to my Binary Tree?

Good, in this code implement a binary tree where values are entered and performing their respective operations. However, when wanting to enter more and more values, I am marked by an error that requires me to receive some advice on what can be d...
asked by 18.04.2017 / 03:32
2
answers

Re-execute a part of the code until it is fulfilled

Good friends, I have a doubt, the fact is that I am new to programming and I am learning python 3, I found a problem practicing the code of the true a very basic program. What happens is the following. I want to continue executing the program un...
asked by 07.05.2017 / 00:34
1
answer

How to know if there are elements in a matrix followed horizontally and vertically in Python

My problem is as follows, I have a matrix for example:    AAABBBC       ABBBCCA       BBCAAAA I need to know which is the largest element consecutively perpendicularly, in this case it would be B since adding the Bs perpendicular would...
asked by 16.05.2017 / 21:49
0
answers

Error opening image with cv2.imread

When I try to open an image with opencv from python, I have an error when using cv2.imread("C:\Developer\TEMP\t**í**lde\imagen\lena.jpg") when the image path contains characters with "accented accent" tilde.     
asked by 12.12.2016 / 15:24
1
answer

Python: Check Various Text Files

Is it possible to check that the values obtained in a .csv file called A are the same as in another file .csv B and print the different cases in a file output.txt? I have done this: import time # En primer lugar debemos de abrir...
asked by 21.11.2016 / 09:32
0
answers

How can I try a scheduled task using Huey?

I need to create a unit test for a scheduled task (schedule), the task works perfectly but in the tests it always returns None: update_task_id = update_delivery_minutes_change.schedule( args=(instance.id,), delay=(60 * 30) ) update_tas...
asked by 29.08.2016 / 23:19
2
answers

Error importing TkInter in Python 3.5 [closed]

I receive an error when importing TkInter in Python 3.5. This is the error message that shows:    File "/usr/local/lib/python3.5/tkinter/init.py", line 35, in       import _tkinter # If this fails your Python may not be configured for Tk   ...
asked by 26.07.2016 / 05:53