Questions tagged as 'python'

0
answers

How do I save the color of a button that sends a python command by php?

Good afternoon, I have a question, I'm doing a web server on the raspberry pi, and when I connect by the browser I have several buttons that act on the outputs of the GPIO with python and with php form = post How can I make a button once c...
asked by 14.01.2018 / 18:08
0
answers

Extract information about Housing and Population - Python

I'm doing a project that consists of extracting the number of homes and population by AGEB in several municipalities of NL from the INEGI website but in order to extract the information you have to draw the outline of the AGEB manually and the m...
asked by 12.01.2018 / 19:44
0
answers

ValueError: shape mismatch: objects can not be broadcast to a single shape because a variable is modified "alone"

I am a code and depending on what values I give to one of the variables, it works well or gives me the following error:    ValueError: shape mismatch: objects can not be broadcast to a single   shape I've been going over everything. I hav...
asked by 17.01.2018 / 14:26
0
answers

Comparison of CSV grouped rows. Python

Sort my CSV to be able to do some math operations with if - else import pandas as pd df = pd.read_csv('Cliente_x_Pais_Sitio.csv', sep=',') df1 = df.sort_values(by=['Cliente','Auth_domain','Sitio',"Country"]) df1.to_csv('test.csv') CS...
asked by 17.01.2018 / 15:07
0
answers

Selenium. Mouse over element does not display content

I am making scrapes of data on the link page. The problem I have is that if you go down on the main page, you will see the results of the matches of the day already finished, and if you place the mouse over the result, a table appears. For wha...
asked by 08.01.2018 / 17:24
1
answer

Sort list of nodes by attribute

I'm parseando this web link . For this I need to know the header, in which the full date comes, plus the nodes that contain each game. I need to do it sequentially, because in the same table there is more than one header with different dates. W...
asked by 31.12.2017 / 12:30
0
answers

how to get cities from a specific country?

Good morning. I am doing a project for Colombia and I need the cities of that country and I would like to know if anyone knows any extensions for Django 1.11 and python 3.5 to obtain the cities of a specific country. My problem is that it may...
asked by 01.02.2018 / 11:57
1
answer

Possible values for each set of Python variables

Use Python 2.7 I have 5 variables: Fillrate, eCPM, Revenue, Impresiones y Oportunidades . Each one can take the values: ALERTA, Down, Estable, Up, Incremento I need to know what options there may be for each set of variables. I...
asked by 04.01.2018 / 23:02
1
answer

Multi database and Multi sites Django

I try to make an API Rest Application in Django and I try to make several domains (example1.com, example2.com, example3.com) at the time of making requests are directed with the database of each one. Each domain has its database in postgresql...
asked by 05.01.2018 / 19:01
1
answer

TypeError: object supporting the buffer API required

import hashlib from sys import exit def md5(): hash1=input("Dame el codigo MD5 : ") Identificador=1 with open ("diccionarios/rockyou.txt") as f: abrir=f.readline().strip() for contraseña in abrir : md5archivo=hashlib.md5(contrase...
asked by 05.01.2018 / 01:05