Questions tagged as 'python-3.x'

1
answer

Commands equivalent to 'nice' and 'cpulimit' for windows 7?

I want to limit the access of my programs to the resources of the team to prevent it from being hung up so that I can continue working on other issues while the programs are running in the background. I'm looking for a generic way to do it regar...
asked by 04.06.2018 / 16:52
0
answers

Improve performance compared to fields

I am doing a process that should compare 3 fields in a table in search of duplicates. What was done was to create another table with the same records and take a record of TABLE 1 and compare it with all the records in TABLE B, this technique...
asked by 04.06.2018 / 15:57
2
answers

Error converting jsonp to json in python with the Pixabay API response

I am trying to get the URL of an image to download it by command line from a jsonp pixabay answer (using its API): This is the request: import jsonp2json import json import python_pixabay pix = python_pixabay.Pixabay('xxxxx...
asked by 24.05.2018 / 06:19
0
answers

Generate several txt files in python

I'm new to python. I have a main file in which there is information stored in columns. I am asked to empty every 5 lines of this file into a new file. That is to say; lines 3-8 in file1.txt, lines 9-13 in file2.txt and so on until the lines in t...
asked by 23.05.2018 / 21:04
0
answers

Threads with python

I am trying to make updates to a database that is located in MongoDB. For the number of records I need to do it by threads so that this is much faster. In the code that I put down it does but I see that it repeats the values so it does not wo...
asked by 23.05.2018 / 17:48
0
answers

Can Squarify use two columns to graph?

I would like to know if having a dataframe with column A and B, where A is a quantity and B indicates a category assigned to that amount can be used as parameters in squarify to display its graph. One of the parameters of squarify is the scale o...
asked by 21.05.2018 / 05:22
0
answers

Python Peewee AttributeError - When I consult with more than one join

I am trying to make a query with ORM Peewee with a connection to an existing database . Specifically I need to relate three tables with joins but I get the following error: (work) C: \ Users \ eguzman \ Documents \ python-work \ asterisk-...
asked by 17.05.2018 / 23:28
1
answer

Question about "import" / "from import"

I do not understand why, with some third-party modules that I use, when trying: import foo does not let me access foo.bar ; however, when using from foo import bar Yes I can correctly access bar Why is this happ...
asked by 17.05.2018 / 23:33
0
answers

Python Wait for a window / process to open then close the previous program

Dear Community Users Based on a previous thread Start two processes and wait for the second process to finish to finish the first one , I ask the following question. From the following example that opens two applications (Notepad and Paint), af...
asked by 17.05.2018 / 23:06
0
answers

Python Connection MSSQL AWS Lambda

I'm trying to connect a lambda function in AWS, to an MSSQL database with no results I'm using the pyodbc library, but it gives me the following problems from datetime import datetime from dateutil.parser import parse from os import getenv...
asked by 17.05.2018 / 23:09