Questions tagged as 'python'

0
answers

How to transform an MLP neural network into an RNN?

I have an MLP rating to predict the prices of the stock market prediction [0:] and the sentiment score on the 'sentiment_score' items. Now I want to try an RNN to do the same. However, I cook during the adjustment. The MLP classifier was: f...
asked by 22.12.2018 / 12:58
0
answers

Update a single selected record with Tkinter y, Psycopg2 [closed]

I already managed to update with (Psycopg2-Tkinter). But he does it on all records, as I do to apply only to the selected record. Button(self.edit_wind, text='Actualizar', command=lambda: self.edit_records(nombre=new_nombre.get(...
asked by 21.12.2018 / 23:01
1
answer

Error in sql query Interbase / Firebird with python

I have an error in an sql query that I make to the firebird / interbase database with python. This one throws me an error: for rec in cur.fetchall(): kinterbasdb.ProgrammingError: (-802, 'fetch: \n arithmetic exception, numeric o verflow...
asked by 20.03.2016 / 18:32
1
answer

Assign values to a DataFrame column. Phyton

I want to assign values in my DataFrame to a column based on a condition My data frame is: a fecha1 fecha2 1 5/5/2018 11:00:00 25/5/2018 16:00:00 2 25/10/2018 10:00:00 15/5/2018 12:00:00 1 15/4/2018 12:00:00 14/9/2013 12:00:00 3 7/...
asked by 22.11.2018 / 13:36
1
answer

Remove characters and letters in Pandas

I must iterate over a column and delete the special characters and letters. Any ideas? The issue is that it is not always at the beginning of the chain. EXAMPLE: PC 17572 546RT*5 RESULT: 17527 5465     
asked by 01.12.2018 / 04:01
0
answers

DeprecationWarning: json is deprecated when testing with Pytest

I'm testing with Pytest 3.10 an application mounted on Flask 0.12.2 and Werkzeug 0.14.1. The testing works well only in the end, Pytest shows the summary of the warnings that have been detected throughout the test: ============================...
asked by 12.11.2018 / 10:01
0
answers

Create Python Agenda

I'm creating an agenda where contacts can be added, and then I show them, but when I give them the option to show me the contact, they just show me one and they do not show me all they keep def e2(): contactos = [] class clsContacto ()...
asked by 12.11.2018 / 06:36
1
answer

Show contents of an XML file in HTML

I want to show the content of the XML file that I select in the form with an input, but it does not work for me. I have tried different ways and I do not give with the key; I tried to return the name of the file after being chosen and if it w...
asked by 08.11.2018 / 21:13
0
answers

Turtle library in python gives 'terminator' problems

I am having problems with the following code although it is very simple. The error has to do with the python turtle library, and I've been fighting for a few days. When I run the code for the first time, it works. But when I close the window of...
asked by 03.11.2018 / 18:44
0
answers

how to modify the tabwidget so that it has two rows instead of scrollbuttons?

I want my window to look like this and not like this     
asked by 02.11.2018 / 17:23