Questions tagged as 'python'

1
answer

Python Pandas error "ValueError: can not merge DataFrame with instance of type class 'list'"

I need to add data from other dataframes in a dataframe, using the merge function, to get it to only take those values whose indexes have the same date. The sentence that I show next, returns me the error mentioned in the Title. df_total = pd....
asked by 08.08.2018 / 20:57
1
answer

Label Tkinter several lines

Hello, I have a problem in my application when using labels. The problem is that when writing a long text, the text continues and leaves the window. What I want is that the text does not pass from the area delimited by the window, and is put as...
asked by 10.09.2018 / 17:24
0
answers

Error in pyHook KeyboardSwitch ()

I'm experimenting with a keylogger: import pyHook, pythoncom def eventoTeclado(event): data_key = 'WindowName:'+str(event.WindowName)+ '; Ascii:'+ str(event.Ascii)+" "+ chr(event.Ascii)+ '; Key:'+ str(event.Key)+ '; KeyID:'+ str(event...
asked by 13.10.2018 / 04:55
0
answers

Send text to a window (Python)

I have to execute a cmd command from python and I do it using subprocess: The command in cmd would be "gpg -d filenameEncriptado.gpg", in python it would be something like this: import subprocess subprocess.call(['gpg' ,'-d', 'nombreArchivo...
asked by 05.12.2018 / 22:24
1
answer

Multiple timer running at the same time from the same function in different threads

I want to use a function to launch a timer with different frequencies for each of the threads that I open. I do not know if this is possible. Could you help me out? import threading import logging logger = logging.getLogger(__name__) lock = t...
asked by 15.06.2018 / 18:56
0
answers

Django does not direct to the correct URL

views.py class PartnerListView(ListView): model = Partner template_name = 'contacts/partner_list.html' def get_context_data(self, *args, **kwargs): context = super(PartnerListView, self).get_context_data(**kwargs)...
asked by 07.07.2018 / 17:09
1
answer

concatenate 2 array with condition in python

I have 2 array, of 2 columns each. Array A has the form: pid track 0 77vFvcdWZi0ZqiDOoHU3YI 1 0e9hR1vTrzlUvFH5PgA9rY 2 00z4wF0iJsp6GwDkQxkGs6 3 0CyRloqqjpeKEAd3cO6J6z 4 0c1gHntWjKD7QShC8s9...
asked by 24.05.2018 / 10:05
0
answers

Someone who could help me in python to program this problem?

Write a program that returns the factorial and the exponent respectively of all the numbers of two lists. enter the elements of each list by keyboard. at the beginning ask how many elements will be entered in each list. Hello! I've been doing...
asked by 03.11.2018 / 04:58
0
answers

gi.repository Gst problems

I am writing a simple script to play an audio file with the Gst (gstreamer) library of PyGobject, when executing the script the following error is displayed:    (python3: 31506): GStreamer-CRITICAL **: 00: 55: 27.705: Trying to   dispose elem...
asked by 29.10.2018 / 06:01
1
answer

Help with Python 3 UnicodeDecodeError when receiving bytes

I have to send the output of an "ipconfig" command using a socket with the check_output method of the subprocess module. This process used to be easy in the Python version 2.7 but in Python 3 everything is more complicated and it shows me a Unic...
asked by 27.06.2018 / 00:12