Can't get status of sms from Twilio

Python
I had some issue when works with Twilio API. I tried to get sms status as is delivered, queue, failed or another, but I couldn't find this method at R...
3 years ago

How do I run psycopg2 on El Capitan without hitting a libssl error

Python
I've got a python django dev setup on my mac and have just upgraded to El Capitan. I've got psycopg2 installed in a virtualenv but when I run my serv...
3 years ago

Traversing FTP listing

Python
I am trying to to get all directories' name from an FTP server and store them in hierarchical order in a multidimensional list or dict So for example...
3 years ago

How to create a simulated printer in Python?

Python
I'm trying to simulate a printer using a linked queue to manage print jobs. A print job would be processed in the order of submission, and there are 2...
3 years ago

Element no longer attached to the DOM and timeout exceptions

Python
I have written a full selenium script that's working but not all the time as whem I try to select meals (this is last sections of the page), I sometim...
3 years ago

Can I run Jupyter notebook cells in commandline?

Python
I am deploying a Python package, and I would like to run a simple test to see if all cells in my notebook will run without errors. I would like to te...
3 years ago

Django 1.7 - Cannot find tutorials

Python
I have been searching the net for any references or tutorials for learning Django. Since I'm going to learn it, it makes sense that I learn the newest...
3 years ago

Element not visible error (Python, Selenium)

Python
I'm having an issue where an error appears in my PYTHON GUI stating 'ElementNotVisibleException: Message: Element is not currently visible and so may ...
3 years ago

Renaming columns in pandas

Python
I have a data table using pandas and column labels that I need to edit to replace the original column labels. I'd like to change the column names in...
3 years ago

flask before request - add exception for specific route

Python
in my before_request() function, i want to redirect the user to /login if they are not yet logged in. is there a special variable that will give me th...
3 years ago

How do I count occurences of a unique label?

Python
I have a document that consists of labels like this: 201 202 205 201 203 204 201 If I wish to count the number of occurrences of each label and pri...
3 years ago

How to decode ascii in python

Python
I send cyrillic letters from postman to django as a parameter in url and got something like %D0%B7%D0%B2 in variable search_text actually if to print...
3 years ago

import excel file error python pandas

Python
I have trouble loading excel files into a dataframe using ExcelFile(). I have imported pandas,xlrd and openpyxl. I am using spyder for interactive dat...
3 years ago

Apparently fine http request results malformed when sent over socket

Python
I'm working with socket operations and have coded a basic interception proxy in python. It works fine, but some hosts return 400 bad request responses...
3 years ago

Python: How to sort a number in two ways and then subtract the numbers

Python
I'm new to programming and have a Python-question! What I want to do is: Let the user type in a number (for ex 4512) Sort this number, starting with...
3 years ago

how to give similar subclasses new default variables in init Python

Python
I am trying to give my subclasses default variables and stop duplicating code as the file is getting fat: class Base(object): def __init__(self,...
3 years ago

Python & tkinter: canvas.lift and canvas.lower on overlapping buttons does not work

Python
I created two overlapping buttons on a canvas, using tkinter and python 3.4: Now I would like to bring button1 to the front (the button you cannot ...
3 years ago

What's the difference between list and tuples?

Python
What's the difference? What are the advantages / disadvantages of tuples / lists?
3 years ago

pandas - change df.index from float64 to unicode or string

Python
I want to change a dataframes' index (rows) from float64 to string or unicode. I thought this would work apparently not: #check type type(df.index)...
3 years ago

R function rep() in Python (replicates elements of a list/vector)

Python
The R function rep() replicates each element of a vector: > rep(c("A","B"), times=2) [1] "A" "B" "A" "B" This is like the list multiplication in...
3 years ago