Questions tagged as 'python-3.x'

1
answer

How to leave the label background transparent? python3 + tkinter

lbl2 = Label(jan, font=("Arial", 12, "bold"), text="Escolha apenas uma Categoria por vez") lbl2.place(x=20, y=450) I'm putting this label on a green image, but it ends up getting its gray background, is there any way I can use the tkinter to j...
asked by 23.08.2018 / 20:22
0
answers

problems with REPLACE in decimal field in MySQL with Python3

In Python 2 I used the SQL query of the following form SELECT REPLACE(SUM(valor), '.', ',') FROM pedidos and the result was thus 1790394.95 But in Python3 I run the same query and the result comes like b'1790394,95 ' I'm using Python3...
asked by 16.08.2018 / 21:19
0
answers

Operands can not be transmitted together with forms that still appear to be the same

I tried to calculate the cosine similarity between two columns of a% data_frame% following this tutorial : train["diff"] = (train["quest_emb"] - train["sent_emb"])**2 However, when computing it, it looks like I have a dimension error with...
asked by 15.08.2018 / 23:31
0
answers

PYAUTOGUI functions not working

I am automating the installation of software using python with pyautogui: import pyautogui import time import pyperclip for window in pyautogui.getWindows(): pyautogui.getWindow(window).minimize() ##Abre local do .exe pyautogui.hotkey("w...
asked by 28.08.2018 / 15:50
1
answer

Problems with using include in Django

I'm having trouble with the include function, according to the django documentation, the syntax is include(module, namespace=None) include(pattern_list) , include((pattern_list, app_namespace), namespace=None) . Source co...
asked by 18.08.2018 / 16:05
1
answer

How to add elements in a .csv file in python

I'm having a hard time creating an algorithm that adds a third-row element to the CSV file in the Python language. The file has the following data: Serial; Imei; Número; Icc; Stock 869606020314526; 8...
asked by 09.08.2018 / 20:19
0
answers

Selenium - does not perform action on new tab

When automating a click () new tab is opened. Expected situation: use command to change tab, start actions within the new tab. What happens: I can not perform any action on the new tab. (site problem?) Follow the code: f...
asked by 15.08.2018 / 03:06
1
answer

NameError: is not defined in python3

I have a simple problem, when I execute this function it returns an error:    Traceback (most recent call last):     file.py3 on line?, in getUserOutputs       userOutput = _runwwmdh (testInputs [i])     file.py3 on line 15, in _runwwmdh     ...
asked by 15.08.2018 / 01:42
0
answers

How to delete a specific print line in the Python cmd

Good afternoon, Lately there has been an error in using the progressbar lib to create a bar in windows 10. When I go full screen or decrease the size it starts to create bars: Error I solved the error by cleaning the cmd with the li...
asked by 08.08.2018 / 16:05
0
answers

How to store a result in a dataframe?

I run a difference calculation on two columns of data frames that are in a third column. However, if the calculation is executed, the last one will not be stored in the dataframe. def predictions(train): print("cosine_sim") train["cos...
asked by 17.08.2018 / 14:39