I got control of my spending with a few no-code services and 100 lines of python: https://medium.com/@jcpeters/how-i-got-control-of-my-spending-with-a-couple-no-code-services-and-only-100-lines-of-python-code-36c8ac75f670
Medium
How I got control of my spending with a couple no-code services and only 100 lines of Python code
Lessons learned about moving fast and shipping products
The reason I am using Altair for most of my visualization in Python: https://www.reddit.com/r/Python/comments/bkyeyc/the_reason_i_am_using_altair_for_most_of_my/
reddit
The reason I am using Altair for most of my visualization in Python
Hi everybody. I used to visualize most of my work in matplotlib and Seaborn (after trying Bokeh, Plotly, plotnine, among others), but when I...
Tensorflow 1.13.1 tf.data map multiple images with a single row together: https://stackoverflow.com/questions/55964853/tensorflow-1-13-1-tf-data-map-multiple-images-with-a-single-row-together
Stack Overflow
Tensorflow 1.13.1 tf.data map multiple images with a single row together
I'm building my tf dataset where there are multiple inputs (images and numerical/categorical data). The problem I am having is that multiple images correspond to the same row in the pd.Dataframe I ...
Guido with a painting of himself that was auctioned yesterday night at the PyLadies Auction 2019!: https://www.reddit.com/r/Python/comments/bl2d33/guido_with_a_painting_of_himself_that_was/
reddit
Guido with a painting of himself that was auctioned yesterday...
Posted in r/Python by u/theoracleguy • 782 points and 61 comments
How to update and copy a row in SQL?: https://stackoverflow.com/questions/52052296/how-to-update-and-copy-a-row-in-sql
Stack Overflow
How to update and copy a row in SQL?
Let's say I have a row in a ProductTable. That row's ItemID column links to ItemTable's ID column. The ID columns of both tables are primary keys and identity columns.
Like this:
ProductTable:
...
Like this:
ProductTable:
...
Modifying a pandas dataframe with dynamic logic using exec: https://stackoverflow.com/questions/55974594/modifying-a-pandas-dataframe-with-dynamic-logic-using-exec
Stack Overflow
Modifying a pandas dataframe with dynamic logic using exec
Let's say I have a script that reads data into a dataframe from a database, runs some logic on that dataframe, and then exports the resulting dataframe into another database table like below. The i...
Guido blames social media for his decision to abandon the supervision of Python: https://www.revyuh.com/2019/05/guido-blames-social-media-in-part-for-his-decision-to-abandon-the-supervision-of-python/
Revyuh
Guido blames social media in part for his decision to abandon the supervision of Python
Guido van Rosuum, creator and former "Benevolent Dictator for Life" of Python, decided to abandon the supervision of the development of Python alleging that he was tired of hatred...
Pyinstaller --onefile mode, how to write a message to console before unpacking: https://stackoverflow.com/questions/55976317/pyinstaller-onefile-mode-how-to-write-a-message-to-console-before-unpacking
Stack Overflow
Pyinstaller --onefile mode, how to write a message to console before unpacking
I have an .exe I'm packaging using pyinstaller and it works like a charm. However when the .exe is clicked, I have to wait nearly 10 seconds while staring at a blank console window for the actual
Input layer for VGG16 in Keras: https://stackoverflow.com/questions/55976666/input-layer-for-vgg16-in-keras
Stack Overflow
Input layer for VGG16 in Keras
I am building a U-Net and I'd like to use pre-trained model (VGG16) for the decoder part.
The challenge is that I have grayscale images, while VGG works with RGB.
I have found a function to conve...
The challenge is that I have grayscale images, while VGG works with RGB.
I have found a function to conve...
Kenneth Reitz Publishes Response to Recent Blog Post Then Quickly Deletes His Response: https://www.reddit.com/r/Python/comments/bld66j/kenneth_reitz_publishes_response_to_recent_blog/
reddit
r/Python - Kenneth Reitz Publishes Response to Recent Blog Post Then Quickly Deletes His Response
277 votes and 180 comments so far on Reddit
Deploying/Updating Marathon Docker image using API: https://stackoverflow.com/questions/54186861/deploying-updating-marathon-docker-image-using-api
Stack Overflow
Deploying/Updating Marathon Docker image using API
I am writing code to update deployed image on marathon automatically. I use the REST patch method as listed in marathon API reference http://mesosphere.github.io/marathon/api-console/index.html
...
...
The reason I am using Altair for most of my visualization in Python: http://fernandoi.cl/blog/posts/altair/
fernandoi.cl
The reason I am using Altair for most of my visualization in Python
Visualizing data in Python.
Unittest equality of empty record arrays: https://stackoverflow.com/questions/48290719/unittest-equality-of-empty-record-arrays
Stack Overflow
Unittest equality of empty record arrays
I noticed the following unittest.TestCase assertion failing and am wondering how to correctly compare empty recarrays:
fails:
self.assertEqual(
np.array(
[],
dtype=[
...
fails:
self.assertEqual(
np.array(
[],
dtype=[
...
I wrote a tutorial on building a simple portfolio website with Flask: https://www.reddit.com/r/Python/comments/blb5h3/i_wrote_a_tutorial_on_building_a_simple_portfolio/
reddit
r/Python - I wrote a tutorial on building a simple portfolio website with Flask
58 votes and 7 comments so far on Reddit
What is the way to use Tensor flow 2.0 object in open cv2 python and why is it so circuitous?: https://stackoverflow.com/questions/55986982/what-is-the-way-to-use-tensor-flow-2-0-object-in-open-cv2-python-and-why-is-it-s
Stack Overflow
What is the way to use Tensor flow 2.0 object in open cv2 python and why is it so circuitous?
I load an image using tensor flow api (2.0) like so :
def load(image_file):
image = tf.io.read_file(image_file)
image = tf.image.decode_jpeg(image)
Now that I have this object, I want to sho...
def load(image_file):
image = tf.io.read_file(image_file)
image = tf.image.decode_jpeg(image)
Now that I have this object, I want to sho...
Worker process crashes on requests.get() when data is put into input queue before the worker process starts: https://stackoverflow.com/questions/55924761/worker-process-crashes-on-requests-get-when-data-is-put-into-input-queue-befor
Stack Overflow
Worker process crashes on requests.get() when data is put into input queue before the worker process starts
In macOS High Sierra (Version 10.13.6), I run a Python program that does the following:
Launches a worker process that consumes data (URL strings) from a multiprocessing.Queue.
The worker process ...
Launches a worker process that consumes data (URL strings) from a multiprocessing.Queue.
The worker process ...
Odoo custom module add new action to hr module: https://stackoverflow.com/questions/55949799/odoo-custom-module-add-new-action-to-hr-module
Stack Overflow
Odoo custom module add new action to hr module
I am just a newbie in Odoo. I am creating a custom module for Odoo 11. I want to add a new link as email payslip in hr payroll module . So when admin will navigate to an individual's Payslip, in the
How get top compound words from text in elasticsearch?: https://stackoverflow.com/questions/55790633/how-get-top-compound-words-from-text-in-elasticsearch
Stack Overflow
How get top compound words from text in elasticsearch?
I need to get top terms from elasticsearch, currently we are using significant terms functionality provided by elasticsearch but in our case we need multiple words which come frequently and signifi...