Questions tagged as 'python'

1
answer

Error generating matplotlib graph

I'm new to Python and I'm having a hard time with my algorithm. Its function is to check words in a set of files in PDF format and to analyze the recurrence of each word, generating with this information a graph of the law of zipf second most re...
asked by 11.09.2017 / 21:40
1
answer

Using glob in Python

I'm setting up a client that will play the files found in a folder to a WebService SOAP This WebService has two methods that we will call MET1 and MET2 . When the files found end in .XML and start with LCL, then I run MET1 When the f...
asked by 03.04.2017 / 16:52
1
answer

Python remove () list index out of range

def gera_huffman(simbolosOriginal, probabilidadesOriginal): # gera_huffman(['a', 'b','c', 'd'], [5, 2, 1, 2]) simbolos = simbolosOriginal probabilidades = probabilidadesOriginal lista = [] while (len(simbolos) > 2):...
asked by 05.04.2017 / 19:14
1
answer

How to do this regular expression in python 3.6

I need to do a regular expression to extract the links from this string: links =('href=http://www.ufjf.br/cdara/sisu-2/sisu-2017-1a-edicao/lista-de-espera-sisu-3/?id_curso=01GV&id_grupo=70>ADMINISTRAÇÃO - GOVERNADOR VALADARES - DIURNO -...
asked by 26.02.2017 / 15:32
0
answers

Attachmate's WaitHostQuiet Method - Extra! with python

I'm using Python to automate Attachmate - EXTRA !, just as many do with VBA. I'm using the package pywin32 found here . I'm following the% method documentation found here / a>. The problem occurs when I try to set a WaitHostQuie...
asked by 21.12.2016 / 14:40
0
answers

"Flake8 crashed!" How to solve it? [closed]

Some days I left PyCharm on the side and started using Atom. Everything worked smoothly and today, I wrote A LINE in Python and the message "flake8 crashed!" Appeared. I thought it was lacking in some dependence, but it is not. Anyone experie...
asked by 13.05.2017 / 11:30
1
answer

Difficulty with socket.recv ()

I'm having continuity problems in my code after a function call, related to receiving data via socket with the following code: def le_dados(obj): lista_rcv = [] while True: data = obj.recv(2) if data: lis...
asked by 24.10.2016 / 15:50
1
answer

How to create a Connection Pool using python and sqlAlchemy?

Hello! Well I'm studying python and I started looking for connection pool material using sqlalchemy but unfortunately I did not find any example on the internet that shows the process of creating the connection pool using python and sqlalchemy....
asked by 05.10.2016 / 16:00
1
answer

Help with socket client / server with math interactions of sum in python

I am studying about socket and wanted to make a socket that when the client types 5 and another 5 the server responds 10 and returns the response to the client. How do I change my code to have this interaction? ** file socket_server.py #!/u...
asked by 21.09.2016 / 04:14
1
answer

Change of sign of values in Pandas DataFrame

Hello, good evening. I have a set of vectors whose components (px, py, and pz) are stored in a Pandas DataFrame. I have written a function whose purpose is to change the signal of the vector components if the following condition is observed:...
asked by 03.12.2018 / 23:39