Questions tagged as 'python'

1
answer

How to use CreateView

I'm trying to create a simple task list, but I'm having some problems. I want to create a task, inside it I want to create some activities. This is the problem I can not do. How can I create an activity using a CreateView , however I wo...
asked by 23.05.2017 / 06:46
2
answers

Alternatives for storing and analyzing data

One part of a project I'm developing is acquiring voltage and current data from a solar panel. By day I have around 40 measures like these that are here. 14/dez 16:54 18.21 0.12 18.35 0.0641 14/dez 16:54 17.82 0.27 17.98 0....
asked by 28.12.2016 / 20:51
1
answer

Robo_feed check loop routine if giving stick in python

Robo_Feed I am new to python, I was trying to develop a theft that took the last post from some news portals here in my region. With a search I came to the conclusion that it would be easier to do with the python feedparser module. So I'll try t...
asked by 16.01.2017 / 03:55
1
answer

Is it necessary to close MongoDB connections with PyMongo?

I'm working on a REST API with Python (Flask + MongoDB) and during development I found that in no part of the code had I freed the resources of the database. I've researched there but found nothing feasible about how to best approach this app...
asked by 14.07.2016 / 01:55
2
answers

Python - selenium send_keys () does not work in this form field

I made the correct identification with xPath, the .clear () software works perfectly, however the send_keys does not work at all. Here is the form's HTML code: <input id="yui-gen19" name="e_dt_ini_0" size="12" value="01/06/2015" class="dw-p...
asked by 14.07.2016 / 22:36
1
answer

Autocorrelation function in Python

Hello, everyone! I have a data .txt file with two columns (in X I have the values in days of observations and in Y the Measured Flow of a sample) I want to calculate the Period with which this data is repeated and I would like to do this u...
asked by 24.01.2018 / 17:53
1
answer

Check current index and next index equal to zero python

I need to walk through a list in Python, for example: l = [2313, 1221, 1333, 66, 0, 0, 0, 0] I would like if the current and next element in the list are equal to zero     replaces the current element and the next element by 1. Or if the...
asked by 19.06.2016 / 02:16
1
answer

How to write accented fields in sqlite3 via Python?

Hi everyone! I am doing a small program in python and using sqlite3 to save the database. The program is inserting, reading and deleting data in the database called "location". I would like to know if there is a way to display accented data when...
asked by 25.06.2016 / 01:55
2
answers

Questions about functions in Python

I am a beginner in the programming area and am having doubts in the questions below. I will post the questions and my attempts (all are presenting error in the broker). If anyone can help me from now on thanks.    1 - Write the Rectangle func...
asked by 02.02.2017 / 18:23
1
answer

Count elements of a column

How to count the number of occurrences in columns? File: luz NC luz mas ADV más blanquita ADJ blanco que CQUE que las ART el que CQUE que traía VLfin traer de PREP de serie NC serie mi PPO mi|mío coche NC coche...
asked by 30.08.2017 / 15:40