Questions tagged as 'python'

1
answer

Problem with inheritance in Django models

In my Django application I am working with calendars. For my purposes I have to use the classes Event and Occurrence of the module Django-Scheduler but adding new fields. I would like to know how to inherit from those classes to bu...
asked by 16.06.2017 / 21:08
1
answer

raise NeedDownloadError ('Need ffmpeg exe.' NeedDownloadError: Need ffmpeg exe)

I'm trying to run an unofficial Instagram API written in Python, after several fixed dependency errors are fixed I'm stuck on this error: File "C:\Users\Pablo\Desktop\txts_pys_phps_programacion\Instagram-API-python-master\InstagramAPI.py", lin...
asked by 14.06.2017 / 20:44
1
answer

Do not save python list

Hello, I am making a shopping cart system and when asking me to return the purchase information, it does not store all the values entered, it only delivers the last value entered. def opc1(): global lis lis=[] s="si"; while(s==...
asked by 26.06.2017 / 23:38
2
answers

execution of python in sublime text3, does not show results in lower console

good afternoon, my problem is something I have not got in google, I have sublime text 3 with python 2.7x and when executing any program sublime text does not show me the steps of the program, just shows that I finish, any suggestions?     
asked by 10.08.2017 / 20:26
1
answer

Insert a document in HCP with python

Hello I hope you are well, I have problems uploading a document to HCP (Hitachi) this is the code that I'm occupying import http.client projectName = "Prueba" hcpConn = ".prueba.local.mex" headers = {'Authorization': 'HCP ZONud4M=:85e704...
asked by 09.06.2017 / 18:40
2
answers

How to consult data in MySQL and be able to save in SQL Server? (Python)

Good morning I have a doubt, I have a code generated in Python which what it does is to consult a MySQL table named INFORMATION_SCHEMA.PROCESSLIST in the following way: SELECT *, IF(time >= 10,"Bad","Good") AS Estado FROM INFORMATION...
asked by 08.06.2017 / 17:11
1
answer

Generalized Linear Models in Python

Do you know if you can define a Generalized Linear Model for a random variable with Gamma distribution in Python? Or will I have to settle for R? If it is possible, please attach tutorials, guides, documentation, examples ...     
asked by 10.06.2017 / 03:46
2
answers

How to add arrays of tuples in Python?

I want to add two arrays, follow_dismiss and display that have only one value: follow_dismiss [(408L,), (14L,), (59L,), (6L,), (32L,), (62L,), (59L,), (120L,), (53L,), (150L,), (3L,), (1L,), (60L,), (1L,), (126L,), (41L,), (239L,...
asked by 22.05.2017 / 12:31
1
answer

List dictionary, tour Python values

I want to go through a dictionary that has lists within Lista = {'829690':['testmartin','--test$2--']} I need that in my function For key in ... read me testmartin and --test$2-- Here is everything I have to do with...
asked by 19.10.2017 / 00:22
1
answer

a calculation is repeated in operations with columns in python

I'm trying to make subtractions between rows of 2 columns. For this I use a function that subtracts row1-row2, squares it and takes it out of square root to eliminate negative sign. Then it goes to row2-row3 and so on until the end of the data....
asked by 15.05.2017 / 18:24