Questions tagged as 'python-3.x'

1
answer

Text Processing in csv file

I have a database with more than a thousand reviews (text) in a csv file, however I need only texts that contain more than 5 words to be in my file. The problem is to make a code that scrolls the entire document line by line and leave only opini...
asked by 14.06.2017 / 01:38
1
answer

Division between row and column values using pandas

I created a pivot table containing some values, but I do not know if it is necessary to use pivot table in this case below a sample of the results: Valor ajuste \ Data posicao 2017-05-3...
asked by 29.06.2017 / 22:58
1
answer

How to make a program differentiate odd and even numbers in python [closed]

Hello, good evening I would like to learn how to make a program differentiate odd even numbers. I have to learn about what?     
asked by 11.05.2017 / 04:29
1
answer

Calculation Average True Range

I have the following problem: I performed the calculation of ATR (Average True Range) using the numpy library, there was no code problem (exception, etc ...) however, the result shows a small decimal difference when compared to software that als...
asked by 11.05.2017 / 14:58
1
answer

Same code producing distinct results in Codeenvy and Windows 8.1

I had made the following code in codevy.io and the Python installed in codenvy is 3.5.1. I got this code and put it to run on windows 8 with python 3.6.1. The purpose of the code is to clean up a CSV file and write them concatenated in a sing...
asked by 05.05.2017 / 16:52
1
answer

How to redirect url with argument to another page in Django? (UpdateView, GenericView)

Well, I have a very pertinent question. I have a django editing class, and when I edit the user, I need it to call the detail class of it (DetailView), the two classes are working, but when I call the url that sends the DetailView, it gives an e...
asked by 05.06.2017 / 16:08
2
answers

How to create a user-sized tray and display it as text using python?

I'm trying to create a program in Python 3.6.1 that creates a tray according to the size entered by the end user and prints the result in the shell. It needs to be displayed as text, and you can not use any library. As much as the library is...
asked by 14.04.2017 / 09:01
2
answers

How to make python select the largest number in a set?

Good afternoon, I'm inputting numbers in python, but I do not know how to do it to aggregate them to a set and then have python decide which is the largest number in the list. Thankful     
asked by 18.04.2017 / 19:01
1
answer

because the iteration of the x of the input does NOT interfere in the iteration of the x of the while loop, and is it the same variable?

I'm learning programming logic with Python and I do not understand how the x of the input does NOT interfere with the iteration of the while loop, since it is the same variable. Please, I would like you to explain, valew !!! #!/usr/bin/python3...
asked by 29.03.2017 / 17:42
1
answer

Reading CSV file and storing the data in a vector

I have the following difficulty: I need to read the data that is inside a CSV file and store it in an array to perform calculations with such data, but I do not know how to do it. I am using Python 3.6. Thank you in advance. My code looks lik...
asked by 27.04.2017 / 17:37