Faster Parallel Python Without Python Multiprocessing: https://towardsdatascience.com/10x-faster-parallel-python-without-python-multiprocessing-e5017c93cce1
Medium
10x Faster Parallel Python Without Python Multiprocessing
While Python’s multiprocessing library has been used successfully for a wide range of applications, in this blog post, we show that it…
Memory leaks when using pandas_udf and Parquet serialization?: https://stackoverflow.com/questions/56329093/memory-leaks-when-using-pandas-udf-and-parquet-serialization
Stack Overflow
Memory leaks when using pandas_udf and Parquet serialization?
I am currently developing my first whole system using PySpark and I am running into some strange, memory-related issues. In one of the stages, I would like to resemble a Split-Apply-Combine strateg...
Rewriting the Slack Python SDK: https://slack.engineering/rewriting-the-slack-python-sdk-ea000f587de7
Medium
Rewriting the Slack Python SDK
Our Journey to Python 3
How to implement neural network pruning?: https://stackoverflow.com/questions/56299034/how-to-implement-neural-network-pruning
Stack Overflow
How to implement neural network pruning?
I trained a model in keras and I'm thinking of pruning my fully connected network. I'm little bit lost on how to prune the layers.
Author of 'Learning both Weights and Connections for Efficient
N...
Author of 'Learning both Weights and Connections for Efficient
N...
How can take advantage of multiprocessing and multithreading in Deep learning using Keras?: https://stackoverflow.com/questions/56344611/how-can-take-advantage-of-multiprocessing-and-multithreading-in-deep-learning-us
Stack Overflow
How can take advantage of multiprocessing and multithreading in Deep learning using Keras?
I'd assume that most frameworks like keras/tensorflow/... automatically use all CPU cores but in practice it seems they are not. I just could find few sources which can lead us to use whole capacit...
Thousands separator using underscore: https://www.reddit.com/r/Python/comments/bvh6fc/thousands_separator_using_underscore/
Sunfish: A simple, but strong chess engine, written in Python: https://github.com/thomasahle/sunfish
GitHub
GitHub - thomasahle/sunfish: Sunfish: a Python Chess Engine in 111 lines of code
Sunfish: a Python Chess Engine in 111 lines of code - thomasahle/sunfish
[AI application] Let your machine play Super Mario Bros!: https://www.reddit.com/r/Python/comments/bvj0fg/ai_application_let_your_machine_play_super_mario/
reddit
r/Python - [AI application] Let your machine play Super Mario Bros!
152 votes and 11 comments so far on Reddit
Numerically Reducing Elevator Awkwardness With Python: https://www.reddit.com/r/Python/comments/bvllhj/numerically_reducing_elevator_awkwardness_with/
reddit
r/Python - Numerically Reducing Elevator Awkwardness With Python
14 votes and 1 comment so far on Reddit
A Tetris implementation that "fits on a business card" (38 lines x 80 characters): https://www.reddit.com/r/Python/comments/bvrkvg/a_tetris_implementation_that_fits_on_a_business/
reddit
r/Python - A Tetris implementation that "fits on a business card" (38 lines x 80 characters)
0 votes and 0 comments so far on Reddit
Tensorflow: create tf.NodeDef() and set attributes: https://stackoverflow.com/questions/56325746/tensorflow-create-tf-nodedef-and-set-attributes
Stack Overflow
Tensorflow: create tf.NodeDef() and set attributes
I'm trying to create a new node and set its attributes.
For example printing one of the graph nodes I see that its attributes are:
attr {
key: "T"
value {
type: DT_FLOAT
}
}
I can crea...
For example printing one of the graph nodes I see that its attributes are:
attr {
key: "T"
value {
type: DT_FLOAT
}
}
I can crea...
Made a video on how to create a basic neural network in Python, wanted to share! I'd appreciate any honest criticism as I'm going to create another video <3: https://www.reddit.com/r/Python/comments/bvwix4/made_a_video_on_how_to_create_a_basic_neural/
reddit
Made a video on how to create a basic neural network in Python,...
Posted in r/Python by u/scyripto • 669 points and 37 comments
Span columns with docxTemplate python: https://stackoverflow.com/questions/56343861/span-columns-with-docxtemplate-python
Stack Overflow
Span columns with docxTemplate python
I'm having trouble trying to fill in a table row by row using DocxTemplate. I'm only confused on how the template should look like.
This is my python code:
from docxtpl import Docxtemplate
doc =
This is my python code:
from docxtpl import Docxtemplate
doc =
Scraping Reddit Data Using PRAW (Python): https://towardsdatascience.com/scraping-reddit-data-1c0af3040768
Medium
Scraping Reddit data
How to scrape data from Reddit using the Python Reddit API Wrapper(PRAW)
django-taggit not working when using UUID: https://stackoverflow.com/questions/56317837/django-taggit-not-working-when-using-uuid
Stack Overflow
django-taggit not working when using UUID
I have gone through the customization documentation here https://django-taggit.readthedocs.io/en/latest/custom_tagging.html#genericuuidtaggeditembase
I am using the following code, when I save the
I am using the following code, when I save the
Find out mouse button state via Xlib in Python: https://stackoverflow.com/questions/54992964/find-out-mouse-button-state-via-xlib-in-python
Stack Overflow
Find out mouse button state via Xlib in Python
I can determine the current mouse pointer position with:
from Xlib.display import Display
display = Display()
qp = display.screen().root.query_pointer()
print(qp.root_x, qp.root_y)
How do I get the
from Xlib.display import Display
display = Display()
qp = display.screen().root.query_pointer()
print(qp.root_x, qp.root_y)
How do I get the
Matplotlib: How to make scatter plot of arbitrary pyplot figures: https://stackoverflow.com/questions/56309678/matplotlib-how-to-make-scatter-plot-of-arbitrary-pyplot-figures
Stack Overflow
Matplotlib: How to make scatter plot of arbitrary pyplot figures
This is a question linked to this well received one. In that question I see an answers on how to plot images (or different images) at different coordinates like a scatter plot.
Using TextArea I c...
Using TextArea I c...
What is a simple framework for time testing pandas and numpy related solutions: https://stackoverflow.com/questions/44467828/what-is-a-simple-framework-for-time-testing-pandas-and-numpy-related-solutions
Stack Overflow
What techniques can be used to measure performance of pandas/numpy solutions
Question
How do I measure the performance of the various functions below in a concise and comprehensive way.
Example
Consider the dataframe df
df = pd.DataFrame({
'Group': list('
How do I measure the performance of the various functions below in a concise and comprehensive way.
Example
Consider the dataframe df
df = pd.DataFrame({
'Group': list('