Questions tagged as 'python'

0
answers

Unresolved reference Qt.Core

Hi, I'm a beginner and I'm trying to learn PySide using pycharm, but when I run the commands I get this error:    "C: \ Users \ User \ PycharmProjects \ hwllo world \ venv \ Scripts \ python.exe"   "C: / Users / User / PycharmProjects / hwllo...
asked by 19.05.2018 / 02:01
1
answer

ModuleNotFoundError: No module named 'ConexionBBDD'

My problem is as follows. I can not import the package ConexionBBDD from my package Cliente, how could I fix it? I already have inside the package a file% co_of% empty, but when I call it, it does not recognize me as a package, w...
asked by 19.05.2018 / 02:19
0
answers

search and replace pandas python, filter with two values

I have two columns: from io import StringIO import pandas as pd csv =StringIO(u'''\ debit,move_id/id, 2002,32 2000,33 2001,34 2002,6166 2002,6166 2003,6541 2004,6166 2002,8089 ''') and I want to filter and change the values in debit when i...
asked by 16.05.2018 / 15:09
1
answer

Start two processes and wait for the second process to finish to finish the first one

Dear users of the community after starting two processes simultaneously, how can I make Python 3 wait for the second process to finish and then finish the first one, I tried with time.sleep () But this only gives me a certain time, the idea is t...
asked by 17.05.2018 / 15:20
1
answer

Find the largest contiguous element

Given an array, print the largest contiguous element (MEC) for each element. The largest contiguous element (MEC) for an element x is the first largest element on the right of x in an array. The elements for which the largest contiguous element...
asked by 22.05.2018 / 15:24
0
answers

Explain the operation of transaction.atomic ()

I am starting a project in django and looking at examples I see that they use transaction.atomic () to save in the database but I do not understand exactly how it works.     
asked by 15.05.2018 / 17:14
0
answers

if variable is not none:

Hi, I'm working in python and openCV and I'm trying to find circles in my image. For this I use the function cv2.HoughCircles () Afterwards, what I intend is to show those circles on the screen ( AND I GET IT , it is in the pr...
asked by 27.05.2018 / 21:53
0
answers

Convert a SQL query to JSON and iterate it in Django

I have a query that I perform on a link to an API and it returns a result in STRING, what I want to do is convert it to JSON and iterate it to be able to handle each result of that query individually. Right now in the views I have: url = "h...
asked by 15.05.2018 / 08:19
0
answers

ImportError: No module named 'ConfigParser'

I installed pip. And now I try to install MySQL and it returns this. How could I fix this? I do not know how to do it. (myproject) pi@raspberrypi:~ $ pip install MySQL-python Collecting MySQL-python Using cached https://files.pythonho...
asked by 15.05.2018 / 06:28
0
answers

How can I use the field of a foreignkey that I have in the extended dl User that Django brings?

I'm using the user that brings default Django and expanded it with a foreignkey, here's the code: #*---usuario/models.py from django.db import models from django.contrib.auth.models import AbstractUser from app.organigrama.models import unida...
asked by 21.05.2018 / 21:50