Questions tagged as 'python'

1
answer

Problems Login Python Selenium, Urllib, Urllib2, request!

I want to login to this page: https://onevideo.aol.com/#/ and I have tried with request, selenium, urllib2, urllib, mechanize ... and I have not even been able to find the username xpath and the submit button. Better said, if I find them...
asked by 11.10.2017 / 22:15
1
answer

Calendar within QLineEdit

I have a question about PyQt5. I try to have a date input, so that the user presses a box and opens a calendar to select the date. In some places I have read about the code setCalendarPopup(true) , but I have not been able to use it suc...
asked by 12.12.2017 / 03:53
1
answer

Obtain coordinates of an element in a two-dimensional array based on X and Y

I have the following list: laberinto = [ ['*', '*', '|', '|', '|', '|', '|', '|', '|', '|'], ['|', '*', '*', '*', '|', '|', '|', '|', '|', '|'], ['|', '|', '|', '*', '|', '|', '*', '*', '*', '|'], ['|', '|', '|', '*', '|', '|',...
asked by 13.10.2017 / 00:52
2
answers

How to access an object per class?

This is my code fragment that generates me error. boton = browser.find_element_by_css_selector(".boton boton-rojo") boton[0].click() Here is the html object: <div class="boton boton-rojo"><a href="https://******.*****.com.co/iMod...
asked by 26.12.2017 / 17:49
2
answers

Date format when importing from Excel

I am learning to work with DataFrames in Pandas. In my case, the original format in the Excel sheet is "dd-mm-YY". When importing to a DataFrame with pandas, using the statement df = pd.read_excel(file, parse_dates=['Fecha'], dayfirst =...
asked by 24.09.2017 / 23:08
2
answers

Create an image from a dataframe using Python

I am trying to create an image of a specific size of pixels and draw in it several trajectories that I have ordered in a dataframe by x and y coordinates. An example of how the dataframe looks with 2 trajectories would be like this: In [60]: d...
asked by 18.09.2017 / 22:30
1
answer

Numpy Exercise (Python) [closed]

Good morning, I have to do the following exercise with python using the numpy package (I do not have loops or anything like that): Construct an array in which the value of the elements equals the sum of its row plus its column. Is ther...
asked by 20.09.2017 / 10:40
1
answer

Dictionaries in Python vs Javascript Objects

I have a question as to whether the Dict in Python and the Object in Javascript are the same concept and since I consider that if they do the same. Example in Python nombres = {} nombres['Yoel'] = 1 nombres['Manolito'] = 2 nom...
asked by 20.09.2017 / 09:35
1
answer

Error with url when listing products from index.html file

I am trying to list products in a index.html file, I would greatly appreciate your help. I have this file from the app url: from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.hello_world, name='hello...
asked by 02.09.2017 / 04:27
1
answer

Modify global variables

I was doing a very simple program that consists of the user choosing a number between one and one hundred and the computer tries to guess it. If the computer does not guess, you should tell it if the number you chose is a number higher or low...
asked by 21.09.2017 / 22:43