Questions tagged as 'python'

1
answer

Error in application deploy Flask

I'm trying to deploy a flask application the same way I do when I'm using python2.7, but in this case I'm using python3 and an error is returned in wsgi. Below is the first line of the apache2 traceback. [Thu Dec 06 23:01:04.823744 2018] [wsgi...
asked by 07.12.2018 / 00:17
0
answers

In which folder should I add the files to be read by Jupyter Notebook

I'm learning how to use Jupiter Notebook to study Data Analysis, however I'm finding it a problem to use it. In the lesson I'm doing, we should read some data provided with the .csv extension. However, when I run the program to read the files, I...
asked by 18.12.2018 / 16:01
2
answers

How do I insert information on the page that is in the excell

Good afternoon guys, I would like to know if anyone can help me ... I'm automating a page and would like to know if it's possible to use an excell worksheet to populate the fields ... For example: Today I am using the following command,...
asked by 29.11.2018 / 19:59
1
answer

stopwords in python

Is there any way to do stopword without using import nlkt ? I'm searching the web but I'm not finding it any other way. I can not install nltk on my 64-bit Python 3.6. I follow all the steps but finished the steps and already...
asked by 19.12.2018 / 00:26
1
answer

Recursive function that returns the sum of the divisors of a number

As an exercise I had to create a recursive function that returns the sum of the divisors of a number. I made the following code, but it is giving maximum recursion error: def somadiv(n, i = 1, s= 0): if i <= n: return somadiv(s...
asked by 09.12.2018 / 23:46
2
answers

How do I make some command to go from one option panel to another in python

Type I was doing a business that had a panel of options that you choose the number and then it goes and runs type Fazer oque: 1: ir ao mercado 2: ficar em casa 1 (pra ir ao mercado) Give after I chose to go to the market Você foi ao merca...
asked by 09.12.2018 / 20:20
0
answers

"column does not exist" using PostgreSQL

Error: psycopg2.ProgrammingError: column "marcos" does not exist LINE 1: ...RT INTO user_table (nome, usuario, senha) VALUES ("marcos", ... ^ Code: cur.execute('INSERT INTO us...
asked by 28.11.2018 / 20:31
2
answers

Change String Values from a Dataset to 'Float'

Good afternoon everyone !!! I'm having a problem getting a job done in a college subject. I'm getting the one ready dataset from another article that was done. The Dataset looks something like this: 3,24.3,389693,21,23,tcp,1540,-------,4,11...
asked by 04.12.2018 / 21:26
1
answer

Wrong answer and I do not know why in Python

I have a question on the following question:    The ages and heights of K students were noted. Make a Program that   determine how many students over the age of 13 have a height below   average height of all students. The entry must contain a...
asked by 29.11.2018 / 19:09
3
answers

My String is giving "unicodeescape" error

I'm trying to open a file with .txt data in Python but an error message appears. arq = open('C:\Users\Cintia\Documents\Python\Dados\lbe.txt', 'r') lbe = arq.read() print(lbe) arq.close() The error is unicodeescape .     
asked by 30.10.2017 / 13:20