Questions tagged as 'python'

0
answers

Comparison of headers and much more (script)

I have two Excel files, which I have passed to txt in order to work with them from pandas. Initially they have the same number of columns, many columns, although with different data below. The headers are the same, but they may not be in the...
asked by 04.11.2016 / 11:25
2
answers

How to verify if a book already exists

As I do to verify if the book already entered exists. Example: libros = { "Principito" : ["Titulo: Principito","Genero: Fantasia", "paginas: 20", "Autor: Raul", "Numero ISBN: 12312123", "Año de edicion: 1994", "Editorial: IZI"],...
asked by 05.11.2016 / 02:38
0
answers

Replace in sqlalchemy

I have a SQL query that works fine, and I'm trying to include it in my API that has SQLAlchemy. This is the query that runs fine: SELECT * FROM Cliente WHERE (REPLACE (numeroDocumento,'-','')) like '30699583533' In my records in the BD I h...
asked by 27.12.2016 / 13:38
2
answers

tkinter, method .get does not return anything

The problem is that although I write something in the Entry fields, and I link them correctly to a variable, when evaluating them with the .get and see what they got, it returns null. ventana_añadir = Tk() ventana_añadir.title("Añadir u...
asked by 27.12.2016 / 00:35
1
answer

Pymongo, data recording order in mongodb

I am using the pymongo module, to record data in a mongodb collection. But, when I go to review the data, I find that they are not recorded in the order in which I wrote them. If I insert them directly from the mongodb shell, there are no proble...
asked by 11.12.2016 / 15:16
0
answers

How to find the annual cycle for a time series?

I am doing a statistical analysis on solar radiation, this means that I have to find the diurnal and annual cycles. For the diurnal cycles, a "for" is used and it worked, but for the annual cycle the "for" is not used, then I leave the codes use...
asked by 11.12.2016 / 19:05
1
answer

Request POST in Django with AJAX function in Angular

I'm doing an AJAX function in angular where I pass a value for POST and it returns an object in JSON. My AJAX function is this: $http.post('/get_professional_info/', {idProfessional: id}).then( function mySucces(response) {...
asked by 02.11.2016 / 18:24
1
answer

use inputs to print figures with turtle

I am a beginner in pyhton I am working in turtle I must do a program to ask the user what figure wants to draw and make that figure importing turtle, until now I have defined the figures for the answers but how do I do it so that when the user p...
asked by 15.11.2016 / 17:58
1
answer

pass words from a line of txt to list

image that there is a txt like the following: juan pepe 123 25 345 marcelo velasquez 345 45 566 where juan pepe, 123,25,345 are elements of a list called user1, which in turn belongs to a list called user. Any ideas on how I could...
asked by 09.11.2016 / 02:55
1
answer

Celery does not perform some tasks

In a Django application I try to send emails asynchronously using Celery, the tasks objects are created, but they do not reach Celery. Here is the id of the created tasks: 0: d51a86c2-219d-44a5-a004-2ff00f13f229 1: 47979e10-643c-4ced-808a-...
asked by 19.12.2016 / 22:50