Questions tagged as 'python-3.x'

0
answers

Updating the obsolete Pandas package pd.ewma () to pd.Dataframe.ewm ()

I had a code that averaged exponentially from the pandas pd.ewma () method --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipyth...
asked by 14.12.2018 / 15:04
1
answer

Runtine error when using multiprocessing in Windows: freeze_suport ()

This is the code of an audio player (.wav), which uses Matplotlib to graph the spectrum, which I have been modifying: import matplotlib import pyaudio import wave import sys import numpy as np import multiprocessing duration = 12.5 filename...
asked by 29.03.2018 / 02:47
0
answers

Limit of queries in google API

I'm conducting distance queries using the google API for r in cursorConsulta: googleGeocodeUrl = 'https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=' punto = str(r[1])+','+str(r[0]) id = r[2]...
asked by 10.04.2018 / 13:46
2
answers

python to oracle connection

Someone will know how to make the python to oracle connection and try to do it with    import cx_Oracle but I got the following error    cx_Oracle.DatabaseError: DPI-1047: 32-bit Oracle Client library can not   be loaded: "The specifie...
asked by 27.03.2018 / 02:14
1
answer

WinError 10053 in script with Python and PyTS3

I have made a small script with Python and the PyTS3 module to mutate from my client automatically to all users connected to a TeamSpeak3 server that has not been added to my friends list. It connects to the client through an add-on called Cl...
asked by 13.03.2018 / 16:04
2
answers

Take result Print and execute program

Dear users of the community, I have a code that allows me to search the path of a file within the system, plus what I need is to take the route that prints in order to run the program automatically, that is, if the user does not have the progr...
asked by 16.03.2018 / 18:04
1
answer

Create a dictionary from text from a dataframe

I have a DataFrame that is created from a txt file. I need to go through each row, find pairs of repeated words and calculate the frequency of appearance. I thought to create a dictionary that stores the pairs of words and with a counter go c...
asked by 28.02.2018 / 23:46
1
answer

K_UP is not defined

I have a problem with the following lines: keys = pygame.key.get_pressed() if keys[K_LEFT]: When I run the code it gives me an error that says: File "HardGame1.1.0.py", line 49, in <module> if evento_tecla[K_UP]: NameError: nam...
asked by 14.02.2018 / 02:02
2
answers

Calculator with an Input - Python

I want to do a basic calculator in Python3 but I have only seen that it works using methods and conditions. But is it possible that entering the whole operation in an Iput, obtain the same result? Example: input("Ingresa tu...
asked by 15.02.2018 / 21:15
0
answers

ImportError: No module named 'matplotlib' because there are two Python

Using Python 3, in a jupyter notebook I try to import matplotlib #!/usr/bin/env python import pandas as pd import numpy as np import matplotlib.pyplot as plt plt.style.use("ggplot") %matplotlib inline But he answers: ImportError...
asked by 05.02.2018 / 19:28