need to add a comma after each random number i generate and write to a file but im python noob, can someone pls help?: https://www.reddit.com/r/Python/comments/5au3vm/need_to_add_a_comma_after_each_random_number_i/
reddit
need to add a comma after each random number i... • /r/Python
1 points and 0 comments so far on reddit
Python function to return usable JavaScript code: https://www.reddit.com/r/Python/comments/5auemv/python_function_to_return_usable_javascript_code/
reddit
Python function to return usable JavaScript code • /r/Python
Is it possible to write a python function that returns JavaScript code that can be used by a web browser?
How to get a median in a list?: https://www.reddit.com/r/Python/comments/5aukfb/how_to_get_a_median_in_a_list/
reddit
How to get a median in a list? • /r/Python
I keep running into issues trying to find a median for a list of values that is odd and even. I'm not allowed to use programs such as statistics...
Accessing directions with google maps api?: https://www.reddit.com/r/Python/comments/5aung4/accessing_directions_with_google_maps_api/
reddit
Accessing directions with google maps api? • /r/Python
I wrote a test script to query the google maps directions service to get directions. It comes through as a list but I just want to access the...
New to Python and pogramming overall: https://www.reddit.com/r/Python/comments/5avavy/new_to_python_and_pogramming_overall/
reddit
New to Python and pogramming overall • /r/Python
(not sure if I an allowed to post here or not, hope not.) hey, I recently started to study python and have a problem. I need to create a...
How to efficiently check if an element occurs at least n times in a list?: http://stackoverflow.com/questions/40351219/how-to-efficiently-check-if-an-element-occurs-at-least-n-times-in-a-list
Stackoverflow
How to efficiently check if an element occurs at least n times in a list?
How to best write a Python function (check_list) to efficiently test if an element (x) occurs at least n times in a list (l)?
My first thought was:
def check_list(l, x, n):
return l.count(x) ...
My first thought was:
def check_list(l, x, n):
return l.count(x) ...
Pandas df.iterrow() parallelization: http://stackoverflow.com/questions/40357434/pandas-df-iterrow-parallelization
Stack Overflow
Pandas df.iterrow() parallelization
I would like to parallelize the following code:
for row in df.iterrow():
idx = row[0]
k = row[1]['Chromosome']
start,end = row[1]['Bin'].split('-')
sequence = sequence_from_coordi...
for row in df.iterrow():
idx = row[0]
k = row[1]['Chromosome']
start,end = row[1]['Bin'].split('-')
sequence = sequence_from_coordi...
Why do I get a "SSL error: called a function you should not call" with Django: http://stackoverflow.com/questions/40278044/why-do-i-get-a-ssl-error-called-a-function-you-should-not-call-with-django
Stack Overflow
Why do I get a "SSL error: called a function you should not call" with Django
I have a Python 3.5/Django 1.10 app served by Apache/mod_wsgi over SSL. It is connected to a Postgres 9.5.2 database (with psycopg2==2.6.2) and is running on a server at AlwaysData
It works fine ...
It works fine ...
Get arguments for celery jobs with mysql backend: http://stackoverflow.com/questions/38346541/get-arguments-for-celery-jobs-with-mysql-backend
Stackoverflow
Get arguments for celery jobs with mysql backend
I am using MySql as result backend for celery. I want to store program arguments in DB too.
For example:
add.apply_async(args=[num1, num2, user]
In this case I want to store user argument in ...
For example:
add.apply_async(args=[num1, num2, user]
In this case I want to store user argument in ...
Massive scaling of HTTP clients. Coroutines or ??: https://www.reddit.com/r/Python/comments/5awg5a/massive_scaling_of_http_clients_coroutines_or/
reddit
Massive scaling of HTTP clients. Coroutines or ?? • /r/Python
I need to exercise some RESTful interfaces using hundreds of thousands (preferably millions) of authentication accounts, from a single machine. ...
Resizing ndarray of images efficiently: http://stackoverflow.com/questions/40201846/resizing-ndarray-of-images-efficiently
Stackoverflow
Resizing ndarray of images efficiently
I have an ndarray I of 100 colored images, where I.shape is: (100,1,3,100,200).
This resizes a single image: i=cv2.resize(i,(10,25)), but what is an efficient way to resize all the images in I, such
This resizes a single image: i=cv2.resize(i,(10,25)), but what is an efficient way to resize all the images in I, such
Python caesar cipher for school: https://www.reddit.com/r/Python/comments/5awl05/python_caesar_cipher_for_school/
reddit
Python caesar cipher for school • /r/Python
Hey I'm working on a caesar cipher for my script. I watched videos about how to do one but I can't seem to make it work in my script. I'm trying...
PEP 532 -- Defining "else" as a protocol based circuit breaking operator: https://www.reddit.com/r/Python/comments/5awlee/pep_532_defining_else_as_a_protocol_based_circuit/
reddit
PEP 532 -- Defining "else" as a protocol based circuit... • /r/Python
1 points and 10 comments so far on reddit
SQLAlchemy Mapping Multiple Classes to One Class (x-post from /r/learnpython): https://www.reddit.com/r/Python/comments/5awmnu/sqlalchemy_mapping_multiple_classes_to_one_class/
reddit
SQLAlchemy Mapping Multiple Classes to One Class... • /r/Python
I've already posted this in /r/learnpython but didn't receive an answer. Alright so the title wasn't exactly descriptive but hopefully the body...