Questions tagged as 'python'

1
answer

Convert Python to exe

I have an app made in python that pulls several imports, and my client does not want to install Python in their environment (because it is an Oracle server), the output I found was to create an .exe, however when I I do not know how to do this,...
asked by 20.07.2018 / 21:40
1
answer

Creating Table / BD with Django?

I use python 3.4 and the latest version of django, I am using the "python manage.py sqall" command but it does not recognize the sqall command. (I am trying to create a table in Bd, and already enter the data correctly.)     
asked by 21.06.2018 / 19:12
1
answer

Logic of a neural network implementation

Hello, Good Morning I made the implementation of a network, and it has the following matrix, where f (x) is an input vector (matrix 1,139), the matrix phi that has dimension 1.20 (20 due to the number of signals that I used it to train it) an...
asked by 24.06.2018 / 17:09
2
answers

Count of elements in an array, storing information in another

Hello, I'm a beginner in python and I'm doing an exercise that consists of reading all the numbers in an array and adding in another array the numbers in the previous one and how many times they appear. Consequently, matrix 2 will have two lines,...
asked by 05.09.2018 / 16:59
2
answers

Block if not well located, how to solve?

I did it, by the way it is giving error, because port 80 is open and it returns as closed import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server = '201.27.188.138' port = '80' def MeuScanDaorao(port): try: s....
asked by 21.06.2018 / 14:45
1
answer

Pandas: Create Multiple Columns in the DataFrame

I have a spreadsheet with the following information: NUM_LEGISLACAO DSC_URL ... COD_TIPO DSC_TIPO 0 323/1895 NaN ... 2.0 CONCRETO 1 2.269/1896 NaN ... 2.0 CONCRETO 2 2....
asked by 27.05.2018 / 00:23
1
answer

Circular import

A doc of Flask, although it uses in its examples, it alerts to the bottom of the page about the bad practice of using circular imports. Another thing that bothers me is to create "global objects" within a __init__.py file. What would...
asked by 03.07.2018 / 17:27
1
answer

Selenium + Python error when using time.sleep ()

I'm automating a task on a website using python + selenium. Every time I use time.sleep() will run sleep time it returns this error. ConnectionAbortedError: [WinError 10053] Uma conexão estabelecida foi anulada pelo software no computa...
asked by 29.06.2018 / 20:18
1
answer

Flask SQLAlchemy: KeyError

I'm trying to create a relationship in the database between the Article, Author and Category class, when I try to create an object from the Article class I get the error "KeyError:" article "referring to the line containing the code (author = db...
asked by 28.06.2018 / 20:12
1
answer

importing data extension ".data"

My Python code is loading an internet dataset, but it does not recognize the columnar number of the data. Python code: import pandas as pd ##Importando dados data = pd.read_table('https://archive.ics.uci.edu/ml/machine-learning-databases/a...
asked by 20.05.2018 / 17:19