Questions tagged as 'python'

1
answer

Doubt in line commands with sql

Good, I am trying to modify the history box with what I entered, but for that it must coincide with the cc and date, I have a command line in sql but it is not saving me in the database sql="UPDATE Cita set Historias='"+str(AGGH.get())+"' WHER...
asked by 10.07.2017 / 23:44
2
answers

Loop nested in python

I'm trying to create a nested loop to check a list of words in a list of texts, but the loop does not work as expected. palabra=["cefalea", "hemicraneal", "días"] hc="cefalea hemicraneal derecha de 4 días de evolución" hc2="Hombre con cefalea...
asked by 06.07.2017 / 20:47
2
answers

Get parameters in a CreateView view

I have a CreateView view to which I am sending a parameter by url, my question is how can I take that parameter to save it in one of the fields of the model? View: class ReferenciarSimpatizanteCreateView(CreateView): model = Referencia...
asked by 11.07.2017 / 19:53
1
answer

Error installing pylint on Mac OS

Good morning I'm working on Mac, python 2.7.10 and with VSCode and I get a notification saying the following: Linter pylint is not installed. I click on install and start downloading but at the end it marks the following errors and for obvi...
asked by 17.06.2017 / 21:14
1
answer

Tkinter Label and slow grid

This piece of code shows a punk box , but when it comes to 5 or more features it slows down a lot, the problem I think is in Label or in grid because without graphical interface and only with print goes very fast, then I wo...
asked by 01.07.2017 / 19:13
1
answer

Create an array of groups and ids related to groups

I want to create an array, a dictionary or a DataFrame (whatever the form) that contains the id grouped by group of subscribers that are in the same group. The ids are in a DataFrame side_subscriber.index , the output of this array is:...
asked by 30.06.2017 / 17:12
1
answer

Colors in a Scatter Plot with Matplotlib

I tell you a little about what my problem is about, I have a very large 3000x16 matrix, as you can imagine each column is 3000x1. I want to make the scatter diagram of one of the columns, called mos, against another 11, that is, 11 scatter diagr...
asked by 08.06.2017 / 23:34
3
answers

Python copying a column from a .txt to a .csv, problems with decimals

I'm creating a numpy array called a table, in the fifth column I want to save a list of numbers that I have in a .txt file I do it with the following code: tabla[:, 4] = np.fromfile('/home/lucia/Documentos/Base de datos de imagenes/TID2013/...
asked by 09.06.2017 / 22:00
1
answer

Get all the indices of the same element

I have two lists listA = [0, 4, 1, 3, 2] and listB = [0, 0, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4] what I want is to get all those indexes where the element of listA appears in listB or that as a result would have listR...
asked by 07.12.2018 / 00:03
1
answer

How do I put the chrome executable in PATH? Python

I'm still trying to open a browser from python, using selenium. This is the code: from selenium import webdriver browser=webdriver.Chrome() browser.get("https://facebook.com") This error appears: WebDriverException: 'chromedriver' executa...
asked by 07.12.2018 / 00:43