Questions tagged as 'python'

0
answers

From RangeIndex to DatetimeIndex

I am analyzing the time series of an action (historical from 2000 to 2018) df.index Out[179]: RangeIndex(start=0, stop=4309, step=1) df.info [4309 rows x 5 columns]> type(df) Out[178]: pandas.core.frame.DataFrame I want to be able to b...
asked by 03.06.2018 / 10:51
1
answer

I need to generate an event in Qlabel Pyqt5 python, it is that when I click on it I detect it and then I throw the coordinates

I load some images in a QLabel, I want to get it to detect the right click of the mouse and I throw the coordinates from PyQt5.QtGui import * import sys import copy sys.path.append('../') class Ui_MainWindow(object): def setupUi(self, Mai...
asked by 03.06.2018 / 22:31
0
answers

Xml, extract ids with Python

I need to extract only the site_id and imps24ad. I can not filter by item id the way I am doing. Use python 2.7 <lista> <sitio sitio_id="58384"> <ultimas24hrs> <item id="imps24ad">10091559</item> <item id="clic...
asked by 01.06.2018 / 19:13
0
answers

python is not running the program in sublime 3

No program is running since I install and install anaconda on my mac. I get the following error. I hope someone can help me.    Failed to import the site module Traceback (most recent call last):   File "/Users/felipelopezrestrepo/anaconda3/...
asked by 02.06.2018 / 04:29
0
answers

Python and CIclos Undefined Sentinels?

I need to ask you something. In a cycle with sentinel, that is, that a distinguished character is placed to leave the indefinite cycle, (while) in python, why should we put this line and that means, I do not find something logical. I a...
asked by 02.06.2018 / 04:22
1
answer

Failed to package a .py in .exe with pyinstaller

I'm trying to create an .exe with pyinstaller of my application .py I work with anaconda and Spyder, it generates the exe well but when I'm going to execute it I get the following error: This application failed to start because it could not find...
asked by 08.06.2018 / 13:25
0
answers

How to solve AttributeError: 'list' object has no attribute 'lower'?

What I'm trying to do is transform the column of the union of two dataframes , the result is the dataframe data . Within this dataframe I have the following column: data['genres'] . The code: import pandas as pd im...
asked by 08.06.2018 / 12:37
0
answers

Server (centos) -Client (windows) socket python and c

I have to simulate an ATM, where the centos server is made with python and the client in c (windows). I have ping when I do between the client and the server. Everything is perfect, but when interacting with the other machine, it is never possib...
asked by 08.06.2018 / 06:08
1
answer

Return multiple values in a For Loop

I am working on a project with Twitter which must be accessed through Tkinter, the fact is that I had first designed a function only in python, I used a 'For' loop and with print I saw what this gave me as result. The fact is that as a Tkinter w...
asked by 08.06.2018 / 01:28
0
answers

New column in pandas:

import pandas as pd df = pd.read_csv("C:/Users/Usuario/Desktop/algotrade/GFG.csv", sep=";", parse_dates=["Date"],dayfirst=True,index_col='Date') df.head(10) Out[131]: Open High Low Close Volume Date...
asked by 05.06.2018 / 15:10