AdvancedPython's profile picture. Tips for programming in #Python and programming in general, especially in data science and machine learning field. More advanced than what's usually on Twitter.

Python Advanced Tips

@AdvancedPython

Tips for programming in #Python and programming in general, especially in data science and machine learning field. More advanced than what's usually on Twitter.

Python Advanced Tips reposted

Python decorators, level 2: decorators that take arguments In this thread we'll try to wrap our heads around functions that create functions that create functions. Let's dive in.

mdank_pl's tweet image. Python decorators, level 2: decorators that take arguments

In this thread we'll try to wrap our heads around functions that create functions that create functions.

Let's dive in.

Python Advanced Tips reposted

Let's learn a bit about Python decorators. 🧵 Bear with me for a couple of tweets and I am sure you'll understand them. Decorators are mind-bending sometimes, so I'll try to use very self-explanatory names. This is my first thread ever, let's see how it goes. ^^

mdank_pl's tweet image. Let's learn a bit about Python decorators. 🧵

Bear with me for a couple of tweets and I am sure you'll understand them. Decorators are mind-bending sometimes, so I'll try to use very self-explanatory names.

This is my first thread ever, let's see how it goes. ^^

Python Advanced Tips reposted

Is your project too sophisticated for a simple Makefile? Find which Python-based, open source orchestration tool is best for you (#Airflow, #MLflow, #Dagster, #Prefect) medium.com/@will_flwrs/py… datarevenue.com/en-blog/airflo…


You can pass a keyword argument containing a whitespace to a function like this: >>> foo(**{"the argument": 1}) Useful when adding columns with pd.DataFrame.assign()


If you rename your #python project, be sure to remove <old-project-name>.egg-info directory before reinstalling it in your venv. Otherwise #pip will get confused and may not be able to install all project's dependencies.


Loading...

Something went wrong.


Something went wrong.