Questions tagged as 'python'

1
answer

How to know if there are elements in a matrix followed horizontally and vertically in Python

My problem is as follows, I have a matrix for example:    AAABBBC       ABBBCCA       BBCAAAA I need to know which is the largest element consecutively perpendicularly, in this case it would be B since adding the Bs perpendicular would...
asked by 16.05.2017 / 21:49
0
answers

Hide and show excel sheets from python (hide and unhide)

I'm trying to hide and show (hide and unhide) some excel sheets using openpyxl, but I can not find a way to do it. Someone has some idea of how it is done, or maybe using some other library. Thanks     
asked by 16.02.2017 / 17:27
0
answers

Problems with the subtables in an SQLFORM.smartgrid

Good morning, I have a problem ... I'm using a SQLFORM.smartgrid with subtables like this: def personal(): response.view = 'controll/default.html' form = SQLFORM.smartgrid(db.personal, linked_tables=[ 'visitas', 'presupuestos', ], csv=F...
asked by 20.01.2017 / 20:15
1
answer

Sort list of python objects

I'm trying to sort a list of Player objects in Django1.10 and Python 3.5. But it is impossible for me and I can not find the error. The object class is the following class Jugador(models.Model): #Otras propiedades rating = models.IntegerFi...
asked by 17.04.2017 / 16:19
0
answers

Error opening image with cv2.imread

When I try to open an image with opencv from python, I have an error when using cv2.imread("C:\Developer\TEMP\t**í**lde\imagen\lena.jpg") when the image path contains characters with "accented accent" tilde.     
asked by 12.12.2016 / 15:24
0
answers

I have this error import signals ImportError: No module named 'signals' [closed]

(myvenv) josepablo@josepablo:~/Ecommerce/ecommerce$ python manage.py runserver Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7f614233b0d0> Traceback (most recent call last): File "/home/josepa...
asked by 22.11.2016 / 02:42
1
answer

TypeError: 'NoneType' object is not iterable in python with sqlalchemy

I write because I can not solve a problem with a query made by my API that is made in Python. This same error does not affect the functioning of the API but I want to remove it anyway because it looks sloppy or clearly not programmed with SQLAlc...
asked by 07.12.2016 / 14:35
0
answers

How do I transform a series that is in minutes to hours to perform my scatterplot?

I am working with two series in Pandas . Radiation with data every minute and Humidity with data every hour. I need to find the way to do the annual cycles and then perform a scatterplot, for this I need that my two series have the sam...
asked by 09.12.2016 / 18:58
1
answer

Python: Check Various Text Files

Is it possible to check that the values obtained in a .csv file called A are the same as in another file .csv B and print the different cases in a file output.txt? I have done this: import time # En primer lugar debemos de abrir...
asked by 21.11.2016 / 09:32
0
answers

Use pysal to calculate spatial autocorrelation in vector data .shp

I am trying to implement 'pysal' in order to calculate the "Local Moran" spatial autocorrelation index of the points of a vector file .shp. This with the objective of cleaning vector data at the INLIERS level. My problem is when I have to obtain...
asked by 09.12.2016 / 23:45