Questions tagged as 'python'

1
answer

Put data from an Excel spreadsheet in the database

The database here in the company generates an Excel report, I need to save this data in a database, initially sqlite3, to be able to display this data in a Django template in the future. Example of exel: Nome do profissional,"Situação atual...
asked by 27.02.2018 / 17:04
0
answers

Downloading over 100 records in Airtable

I'm preparing an APP that takes an Airtable database with python Requests and transforms it into a list. My problem is that I can not get more than 100 records from this database with the request URL. I tried to find a solution in Airtable Ap...
asked by 27.02.2018 / 05:46
0
answers

openpyxl generating corrupted workbook

I'm getting some data from MongoDB and sending it to Excel. I'm using openpyxl but some workbooks show the following error when I open them:    "we found some problem with some content in excel ...". Could anyone help me? Code: ws =...
asked by 26.02.2018 / 11:21
1
answer

Connection Python and pymysql

I am creating a login system and user records. I created a model to do the insertion and in the controller, it validates the information and step for the model to write, however, my model is not working. Here is the connection to the bank d...
asked by 28.02.2018 / 02:09
1
answer

Tkinter, how to update label on canvas?

Hello, I'm trying to build a PivotTable that automatically updates values but I'm not able to update the Labels, I'm using the following code: import tkinter as tk def populate(frame): global widgets widgets={} '''Put in some fa...
asked by 24.02.2018 / 15:49
0
answers

Python: IDLE does not open

I downloaded python 3.6.4 on windows 8, everything went perfectly until I tried to open IDLE, which closed at the same time. It opens the black screen and closes quickly in half a second. Does anyone know the solution?     
asked by 23.02.2018 / 03:08
1
answer

How to ignore the migrations of django.contrib.auth?

I have a Django application where I want to customize the authentication part. I've already done my own Authentication backend as well as set up my own Model that will be used in authentication. The problem is that when I run the command...
asked by 23.02.2018 / 12:57
0
answers

What better way to parallel this function?

I'm trying to parallelize a function that calculates the cosine similarity: Here is my code: import numpy as np def cos_sim(a,b): dot_product = np.dot(a,b) norm_a = np.linalg.norm(a) norm_b = np.linalg.norm(b) if(norm_a == 0...
asked by 20.02.2018 / 19:15
1
answer

Using python to run notepad [closed]

How to use python to open the notepad, and then write a message, and finally using python execute the command ctrl + z     
asked by 19.02.2018 / 20:48
0
answers

How to determine the maximum value of one column for a range of data in another column?

I need to determine the maximum monthly flows, however I'm not able to reorder columns in date term and flows as column data.     
asked by 17.02.2018 / 20:46