Questions tagged as 'python'

0
answers

Subtotal in Columns - Pivot Table - Pandas

I'm trying to create a pivot table that has, besides the general total, a subtotal between column levels and lines as well. The lines I've already achieved through the following function: table = df_consulta.pivot_table(index=["CAT1","CAT2...
asked by 10.09.2018 / 17:29
1
answer

Arrange tabs in pyqt4

Good afternoon everyone! What command do I use to "break" the line of tabs? I would like to have, for example, 3 tabs in one row and 3 tabs just below it. The skeleton I have referring to the tabs is: # layout tab tabs = qg.QTabWidg...
asked by 04.09.2018 / 18:13
1
answer

Error 415 when posting to json for api

import json import requests #criando categoria r0_categoria_dc = {"chave": "r0_formulario", "titulo": "r0_dados_academico", "descricao": "r0_armazena_dados"} r0_categoria_js = json.dumps(r0_categoria_dc) print(r0_categoria_js) r0_obj = requests.p...
asked by 01.09.2018 / 21:35
1
answer

I can not do web scraping properly from a Python web site

Well, I was making a code that would check the day of each comic / gif page, and if the day is the same as the current day (in the code I put 14 only because the site does not update the weekend and I I needed to test it somehow), I would downlo...
asked by 15.09.2018 / 23:39
0
answers

usb camera settings on opencv

Good morning. I have a Dragon board using Linaro. I'm using a python and opencv program for facial detection. But I do not know why the camera does not focus anymore and the resolution is super bad. For my python cod I tried to force a higher...
asked by 07.09.2018 / 15:25
1
answer

Histogram Python Opencv

Hello, I would like to define a histogram of a function that I created to detect an image region. The function is this. def points (imagem, pontosFaciais): p68 =[[47, 35, False], [35, 12, False], [12, 13, False], [13, 14,...
asked by 11.09.2018 / 07:34
2
answers

HttpResponse not returning anything

Next,I'mhavingtroublewiththismessage..whatcanitbe?Followmycode!!Iamtryingtoaccessthe"page" and this message appears ..     
asked by 29.08.2018 / 20:12
0
answers

Grammar for Syntactic Analysis stop NLTK Python - continue on the other line

I am building the grammar in an out-of-code file, however the lines are very long and I would like to know a way to continue on the other line without any execution error. When I put it to continue on another line, for example: N -> 'dog'...
asked by 22.08.2018 / 15:28
2
answers

List in HTML table separated by category

I'm in a development using Python and Django and as IDE the pycharm. I have a list coming via Rest by mobile, under the name 'Athletes', and comes with the columns "name", "category", "time". I would like to list these athletes in an HTML...
asked by 20.08.2018 / 18:50
0
answers

JsonResponse of django returns empty

I am trying to make a query via ajax in django. the javscript part seems all right but when i go it returns the values in django my object always returns shift. django.jQuery(document).ready(function(){ django.jQuery('#id_produto').change...
asked by 20.08.2018 / 05:57