Tox running command based on env variable: http://stackoverflow.com/questions/39530802/tox-running-command-based-on-env-variable
Stackoverflow
Tox running command based on env variable
My current workflow is github PRs and Builds tested on Travis CI, with tox testing pytest and reporting coverage to codeclimate.
travis.yml
os:
- linux
sudo: false
language: python
python:
- "3....
travis.yml
os:
- linux
sudo: false
language: python
python:
- "3....
How to calculate a partial Area Under the Curve (AUC): http://stackoverflow.com/questions/39537443/how-to-calculate-a-partial-area-under-the-curve-auc
Stack Overflow
How to calculate a partial Area Under the Curve (AUC)
In scikit learn you can compute the area under the curve for a binary classifier with
roc_auc_score( Y, clf.predict_proba(X)[:,1] )
I am only interested in the part of the curve where the false
roc_auc_score( Y, clf.predict_proba(X)[:,1] )
I am only interested in the part of the curve where the false
Judge my music downloader made on Python. (Works only on Python 2.7): https://www.reddit.com/r/Python/comments/53h0ta/judge_my_music_downloader_made_on_python_works/
reddit
Judge my music downloader made on Python. (Works only... • /r/Python
0 points and 1 comments so far on reddit
How to mock class used in separate namespace?: http://stackoverflow.com/questions/39543335/how-to-mock-class-used-in-separate-namespace
Stackoverflow
How to mock class used in separate namespace?
Package Structure:
pqr/pq.py
test.py
pqr/pq.py has following structure
Where lmn is globally installed pip module
Structure of pq.py
from lmn import Lm
class Ab():
def __init__(self):
...
pqr/pq.py
test.py
pqr/pq.py has following structure
Where lmn is globally installed pip module
Structure of pq.py
from lmn import Lm
class Ab():
def __init__(self):
...
See stacktrace of hanging Python in futex(..., FUTEX_WAIT_BITSET_PRIVATE|...): http://stackoverflow.com/questions/39506737/see-stacktrace-of-hanging-python-in-futex-futex-wait-bitset-private
Stack Overflow
See stacktrace of hanging Python in futex(..., FUTEX_WAIT_BITSET_PRIVATE|...)
A Python process hangs in futex():
root@pc:~# strace -p 9042
strace: Process 9042 attached
futex(0x1e61900, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff
I want to see the
root@pc:~# strace -p 9042
strace: Process 9042 attached
futex(0x1e61900, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, ffffffff
I want to see the
Salary question for a mid-career change. DC area.: https://www.reddit.com/r/Python/comments/53hl40/salary_question_for_a_midcareer_change_dc_area/
reddit
Salary question for a mid-career change. DC area. • /r/Python
**Backstory:** Trying not to out myself with specifics... I've been a Systems engineer for over 10 years. I learned programming on the side...
PyMySQL in Flask/Apache sometimes returning empty result: http://stackoverflow.com/questions/34169074/pymysql-in-flask-apache-sometimes-returning-empty-result
Stack Overflow
PyMySQL in Flask/Apache sometimes returning empty result
I have a Flask application, being run in Apache, that relies on PyMySQL. The application provides a series of REST commands. It is running under Python 3.
Without providing the entire source, the
Without providing the entire source, the
pyqtgraph: simplest way to pause ipython script until user has placed a roi object: http://stackoverflow.com/questions/39446925/pyqtgraph-simplest-way-to-pause-ipython-script-until-user-has-placed-a-roi-obje
Stackoverflow
pyqtgraph: simplest way to pause ipython script until user has placed a roi object
I would like to implement the following sequence in a script and keep it as simple as possible (i.e., if possible avoid explicit multi-threading):
Process some data. The result is a 2d numpy arra...
Process some data. The result is a 2d numpy arra...
An Introduction to Stock Market Data Analysis with Python (Part 1): https://www.reddit.com/r/Python/comments/53i204/an_introduction_to_stock_market_data_analysis/
reddit
An Introduction to Stock Market Data Analysis with... • /r/Python
3 points and 1 comments so far on reddit
Can I subscribe to a list of multiple kafka patterns using kafka-python?: http://stackoverflow.com/questions/39520222/can-i-subscribe-to-a-list-of-multiple-kafka-patterns-using-kafka-python
Stackoverflow
Can I subscribe to a list of multiple kafka patterns using kafka-python?
I'm subscribing to Kafka using a pattern with a wildcard, as shown below. The wildcard represents a dynamic customer id.
consumer.subscribe(pattern='customer.*.validations')
This works well, bec...
consumer.subscribe(pattern='customer.*.validations')
This works well, bec...
Predict where you are indoors (WiFi signal -> Machine Learning): https://www.reddit.com/r/Python/comments/53igp4/predict_where_you_are_indoors_wifi_signal_machine/
reddit
Predict where you are indoors (WiFi signal -> Machine... • /r/Python
0 points and 0 comments so far on reddit
Analyzing the conditions for studying stars using pandas and seaborn: https://www.reddit.com/r/Python/comments/53iqlu/analyzing_the_conditions_for_studying_stars_using/
reddit
Analyzing the conditions for studying stars using... • /r/Python
2 points and 0 comments so far on reddit
How to execute a small part of C Code in Python?: http://stackoverflow.com/questions/39527403/how-to-execute-a-small-part-of-c-code-in-python
Stackoverflow
How to execute a small part of C Code in Python?
I have written a code in Python. There is a part in the code that does integration which has a very high computation time. But the same integration takes very less time in C. I want to run that par...
How do I handle scope with clean code?: https://www.reddit.com/r/Python/comments/53j68y/how_do_i_handle_scope_with_clean_code/
reddit
How do I handle scope with clean code? • /r/Python
So i'm coming from a bit of a java history. I have a good handle on python as a whole, and have done some stuff. But right now I'm running into an...
Looking for a partner with whom i can make awesome python scripts or programs: https://www.reddit.com/r/Python/comments/53iwwh/looking_for_a_partner_with_whom_i_can_make/
reddit
Looking for a partner with whom i can make awesome... • /r/Python
I am looking a crazy person like me who thinks out of the box and thinks nothing is impossible in coding, one can go to any limits to achieve the...
If you interact with postgres databases, you'll probably appreciate using pgcli instead of psql.: https://www.reddit.com/r/Python/comments/53jd9b/if_you_interact_with_postgres_databases_youll/
reddit
If you interact with postgres databases, you'll... • /r/Python
0 points and 0 comments so far on reddit