Questions tagged as 'python-3.x'

4
answers

Display data with ListView with Django 1.8

I am using Django 1.8 with Python 3.4, I need to show the data of a table with ListView but it does not show me anything or show me any error. Here is the code: models.py class Tipo_almacen(models.Model): descripcion = mod...
asked by 21.01.2016 / 02:33
2
answers

Do not show the output of a command in python when you use os.system ()

I'm trying to make a program that sends a ping to a certain number of IPs that the user enters through the terminal. for example: python programa.py 10 20 I think it is appropriate to mention that the computer on which this tool is going to...
asked by 12.07.2018 / 01:44
1
answer

Save image to disk from a NumPy array

I have the following exercise:    a. Write a function that implements the gamma transformation of a grayscale image. The    function must receive as input parameters: a grayscale image (uint8) and the parameter    gamma. The output parameter...
asked by 27.08.2018 / 15:32
2
answers

How to capture the string of the processes that the python interpreter is executing in cmd?

I do not know if I am very clear with the question, basically I would like to know if it is possible to capture the string of the processes that python is executing inside the cmd, something like the following: Example: Let's say that with...
asked by 29.08.2018 / 04:57
2
answers

Error when trying to compare dates of two time series: Can not compare type 'Timestamp' with type 'str' "

I'm doing a data transformation and I need to run a while between date periods, but I have the error:    "TypeError: Can not compare type 'Timestamp' with type 'str'" I have seen with type() what type of data they are and bo...
asked by 14.12.2017 / 20:38
1
answer

App for android in python

I'm doing my "Hello world" in python, I tell them that I'm taking Kivy to do this but when I run the program I get an error. import kivy kivy.require('1.9.0') from kivy.app import App from kivy.uix.boxlayout import BoxLayout class Contenedor...
asked by 17.07.2017 / 22:27
2
answers

How do I keep my app updated with data from my mysql database?

I have read a lot, researched in several pages but I have not been able to find an answer to my question. I have an application made with PyQt, this same app uploads data to a mysql database and downloads them when you indicate it. But the appl...
asked by 23.05.2017 / 01:30
1
answer

Read several lines with Stdin.readlines

I have a question with Stdin.readlines, I'm not sure how it's used; for example I have this paragraph    Adventures in Disneyland Two blondes were going to Disneyland when   They came to a fork in the road. The sign read: "Disneyland Left." S...
asked by 28.03.2018 / 22:01
2
answers

Rewrite csv file reassigning columns

I have a csv file (let's call it input.csv) that has the following structure, but that contains a very large number of rows: ID;Texto_1;Puntos_1;Texto_2;Puntos_2 1;"Hola mundo dos";33;"Hola mundo tres";90 2;"Adiós mundo dos";44;"Adiós mundo tr...
asked by 16.11.2017 / 21:09
2
answers

RecursionError on 1000x1000 matrix of the same element. Python

Good, I have a doubt, I'm doing unittest for a function that I have and the problem is that when generating a 40x40 matrix, 50x50 of the same element (for example 'A') onwards generates a recursion error, while that with a function of 1000x1000...
asked by 29.05.2017 / 19:53