Questions tagged as 'python'

1
answer

Find anagram in a text file in python

I am stuck in a task, in the task I need to create a function that in that function searches in a text file for a quantity x of letters anagrams, after having found each pair it will be saved as tuple and the function will return the...
asked by 02.08.2017 / 22:48
0
answers

Error executing script, failure to load DLL

I am trying to apply one of my first applications in Qt5 with Python 3.5.2: import sys from PyQt5 import QtWidgets def window(): app = QtWidgets.QApplication(sys.argv) w = QtWidgets.Qwidget() w.show() sys.exit(app.exec_()) wi...
asked by 18.07.2017 / 21:56
0
answers

Jupyter does not work in Fedora 26

I am using the recent version of fedora (26), and all very well with Python3, it works perfectly the "Scipy stack" with the fedora commands I have been able to install and use numpy, pandas, etc. The problem is that I installed Jupyter with the...
asked by 19.07.2017 / 03:46
1
answer

What is the correct way to save results of a function in a dataframe with python

I'm working with information on a Formula 1 grand prize, I use a function that calculates the time each driver takes in the pits during the race. In this way my function is iterable for each of the pilots. My question is, what is the most effici...
asked by 25.07.2017 / 00:55
0
answers

Problem with python-nmap

I installed the python-nmap library when I run the code: nm = nmap.PortScanner() I get an error as shown in the image, I know it has to do with the path, it is not configured     
asked by 29.07.2017 / 01:24
1
answer

CMD pip install error. Exception: Traceback (most recent call last):

C:\Users\pcort>pip install virtualenv Collecting virtualenv Using cached virtualenv-15.1.0-py2.py3-none-any.whl Installing collected packages: virtualenv Exception: Traceback (most recent call last): I have read that this problem is sol...
asked by 29.07.2017 / 17:59
1
answer

Queries nested in Django

Good afternoon I need an example of nested queries in Django 1.11 using OuterRef(OuterRef('pk')) Thanks in advance     
asked by 29.07.2017 / 21:53
1
answer

Objects are not drawn and the display appears in black

I'm using Pygame but I can not get my objects to draw correctly. I do not get any errors and the application responds correctly. The objects are displayed correctly in the console (with print ), only the display appears black. This is m...
asked by 15.07.2017 / 16:33
0
answers

How to access the value of an input in the Django admin

I have a model that is managed by the admin of django, in admin.py and create a method that adds some model fields to the property readonly_fields when the object has already been created, so when I entered to modify the object I the fields appe...
asked by 27.07.2017 / 17:40
2
answers

Error loading CSV file Pandas Python 3

To load a file using Pandas column 14 when adding it generates me an error, I believe because it has very long elements. The charge of the following way: df4 = pd.read_csv('MAPI.csv', header=0, sep=';',usecols=[1,3,9,14,19],parse_dates...
asked by 27.07.2017 / 15:06