Threading in Python: The Complete Guide https://t.co/cLysQZJoUO
β PyCoderβs Weekly (@pycoders) April 16, 2022
Threading in Python: The Complete Guide https://t.co/cLysQZJoUO
β PyCoderβs Weekly (@pycoders) April 16, 2022
I played a bit recently with accelerating pandas workloads on a single machine and it seems the winning combo for me is:
β Radek Osmulski πΊπ¦ (@radekosmulski) February 18, 2022
β use swap for OOM
β use pandas (dask is nice but limited API, modin can be slow)
But I found this cool little gem - swifter π₯
take a look π pic.twitter.com/mDC71gOhAK
I've been using this site for years. I don't know how people do regex without something like thishttps://t.co/FUJPYJZBA1 pic.twitter.com/dg7yy0ksLy
β Hamel Husain (@HamelHusain) February 18, 2022
π Am loving this tutorial from @jeremyphoward, which shows a Python-based way to create and orchestrate @github Actions:https://t.co/ZdsRdMk6GS pic.twitter.com/H8L5xe3N1z
β π©βπ» Paige Bailey #BlackLivesMatter (@DynamicWebPaige) February 13, 2022
Whoa! Pandas has a nifty function read_html for pulling a webpage, returning a list of dataframes representing the tables on it
β Ben Hamner (@benhamner) February 5, 2022
I wanted sunrise/sunset for SF, and thought I was going to have to get my hands dirty parsing https://t.co/LH3T1O8zRa
Nope! It's a pandas one-liner pic.twitter.com/UTQ4iwgRFx
Improved Scalene Python profiler GUI now integrated into Jupyter Notebooks (`pip install scalene`; see also https://t.co/yx1cYSOPY6) pic.twitter.com/xdcI0AbmAr
β Emery Berger (@emeryberger) February 3, 2022
This! A common question people ask is whether they should work with .py vs .ipynb files. It doesn't have to be exclusive. E.g. want a nb with plots but have a loss function that you keep reusing? Put it into a .py file (doesn't have to be a pgk) and import into your notebooks. https://t.co/Eib4iJUyFs
β Sebastian Raschka (@rasbt) February 2, 2022
TIL: in IPython, to insert a new line and turn a long Python oneliner expression into a more readable multi-line code snippet, you can press the following sequence:
β Olivier Grisel (@ogrisel) January 14, 2022
ctrl-q ctrl-j
Pressing "Enter" would instead have triggered the REPL execution, even with surrounding parens. pic.twitter.com/oDD186JR5x
Wow, just realized that Watermark (IPython/Jupyter magic) turned 8 years old! Also just released a new version (https://t.co/mcWXveqldQ), and thx to contribs, you can now print your Conda env. Hah, managing notebooks for research, teaching, & book, I wish we added this earlier π pic.twitter.com/c3XnNJtpfi
β Sebastian Raschka (@rasbt) January 4, 2022
Small tip for correctly formatting a collection of Python Notebooks, install @marcwouts 's #jupytext and #black, then run: pic.twitter.com/v4vBQnO3ws
β Martin Renou (@martinRenou) November 23, 2021
Oh, rad: did you know that you can use functions as values in a Python dictionary? π
β π©βπ» Paige Bailey #BlackLivesMatter (@DynamicWebPaige) November 4, 2021
You can define the lambda function as a reference to the keys of the dictionary, and then you can pass arguments to it and evaluate it.
π Unsolicited {dict} pic: pic.twitter.com/CwiPKfNuIU
Make sure you set PYTHONHASHSEED=0 *before* you start Python or Jupyter, as Python only reads it upon startup. Note that Google Colab sets it for you. pic.twitter.com/kjZMlj9pqz
β AurΓ©lien Geron (@aureliengeron) October 21, 2021