Questions tagged as 'python'

1
answer

Python xlsx loops, repeat actions

I have the following problem: With the code I will paste below, I charge my .xlsx. In it I have columns and in them different values. I add one more column that will have a specific value for each row. My problem is that I do it individually...
asked by 24.08.2017 / 10:36
1
answer

what value isAlive (), when a python 3.x process ends?

When it is alive, an isAlive process takes the value of True but when that process ends what value does it take? When I code if t.isAlive == True: if it works because the process is alive but when if t.isAlive == False: does not...
asked by 24.08.2017 / 21:16
1
answer

Problem with re-dimensioning a matrix

Good, working with the numpy library in python, I discovered the following problem, when I assign a auxiliary matrix to the main matrix , the latter takes the size of the auxiliary matrix , this being the problem . Below is an example....
asked by 03.11.2017 / 15:41
0
answers

How can I enter the time in Django? [closed]

I need help I am developing an application in which the user enter a time from a form, and managed to enter the date but the client wishes to enter the time in 2:00 pm format, but never managed a model for this task can someone help me as I can...
asked by 11.08.2017 / 15:20
0
answers

capture warning messages postgresql from python - sqlalchemy

Please can someone guide me as I can capture the personalized WARNING-level messages created in POSTGRES, I explain. I have currently created a function that returns general box information, there is a calculated field in which if this is les...
asked by 11.08.2017 / 05:38
2
answers

queryset to bring records less than one specific one

I have a view based on classes in which I have a function that performs a query in one of the models: def get_sympatizers_to_reference(self): if self.request.GET.get('q'): self.q = self.request.GET.get('q')...
asked by 12.08.2017 / 02:09
1
answer

Group widgets vertically and horizontally in a layout

I'm doing a framework in python and Qt, and I have a question. Let's see if with some help I can solve it. My question is this: when making a layout I want some buttons to form a vertical layout and others a horizontal layout, so the screen w...
asked by 28.07.2017 / 11:23
0
answers

Create a loop for a word counter on a list

The idea is that I have a list that takes out tweets in each refresh, so it is creating a list of new data with their dates, I have a word counter and in sum the expected result is to count the words and assign them to a list of dates that are b...
asked by 25.07.2017 / 03:18
1
answer

Use str.split () to select parts of a string separating by consecutive spaces

I am receiving some lines of log, to which I generate a header with the data of some of the fields, as the first ip in the line. To do this use a split of empty spaces and so I could select the information I wanted to use in the header. Bu...
asked by 16.10.2017 / 15:46
0
answers

Load data from the database with AJAX in a table in my UpdateView template

I want to load the saved data that are in the database of question options, I have in my model class Pregunta(models.Model): contenido = models.TextField(max_length=1000, blank=False, help_text="Entre la pregunta que quiere que se muestre:...
asked by 24.07.2017 / 23:52