Planet Python
5,271 FOLLOWERS
Recent postings from Python-related blogs.
Planet Python
23h ago
Let&aposs pretend you&aposre working on a supervised Machine Learning problem using Python&aposs scikit-learn library. Your training data is in a pandas DataFrame, and you discover missing values in a column that you were planning to use as a feature.
After considering your options, you decide to impute the missing values, which means that you&aposre going to fill in the missing values with reasonable values.
How should you perform the imputation?
Option 1 is to fill in the missing values in pandas, and then pass the transformed data to scikit-learn.
Option 2 is to pass the o ..read more
Planet Python
1d ago
Today at 3pm UTC – Discover the latest trends in the Django ecosystem, based on insights from 4,000 developers who participated in the Django Developers Survey. Join the livestream with Sarah Abdermane, a Django Software Foundation Board member, and Sarah Boyce, a Django Fellow, to reflect on insights from the Django community.
Register to join ..read more
Planet Python
1d ago
What is the state of serverless computing and Python in 2024? What are some of the new tools and best practices? We are lucky to have Tony Sherman who has a lot of practical experience with serverless programming on the show.<br/> <br/> <strong>Episode sponsors</strong><br/> <br/> <a href='https://talkpython.fm/sentry'>Sentry Error Monitoring, Code TALKPYTHON</a><br> <a href='https://talkpython.fm/mailtrap'>Mailtrap</a><br> <a href='https://talkpython.fm/training'>Talk Python Courses</a><br/> <br/> ..read more
Planet Python
2d ago
Being lazy is not always a bad thing. Every line of code you write has at least one expression that Python needs to evaluate. Python lazy evaluation is when Python takes the lazy option and delays working out the value returned by an expression until that value is needed.
An expression in Python is a unit of code that evaluates to a value. Examples of expressions include object names, function calls, expressions with arithmetic operators, literals that create built-in object types such as lists, and more. However, not all statements are expressions. For example, if statements and for loop sta ..read more
Planet Python
2d ago
In this tutorial, you will learn to write your first Python program ..read more
Planet Python
2d ago
Open Source Summit North America 2024
About • Blog • Newsletter • Links
Open Source Summit North America 2024
Published 2024-04-24 by Seth Larson
Reading time: minutes
This critical role would not be possible without funding from the Alpha-Omega project. Massive thank-you to Alpha-Omega for investing in the security of the Python ecosystem!
Last week I attended SOSS Community Day and OSS Summit. It was great to catch up with friends and to meet new people for the first time at a cross-ecosystem open source event.
I gave a talk "Embrace the Differences: Securing software ecosystems where t ..read more
Planet Python
2d ago
I'm starting a SaaS project using Django, and there are tons of decisions right out of the gate.
To help me navigate these decisions, I've brought on Cory Zue.
Cory is the creator of SaaS Pegasus, and has tons of experience with Django.
Some of the topics discussed:
Building Django applications
SaaS Pegasus
placecard.me
What boilerplate projects are
Django cookiecutter
Cookiecutter
Which database to use, probably PostgreSQL
Authentication choises, probably Allauth
Docker, Docker for development, Docker for deployment
Deployment targets / hosting services. Render, Heroku, Fly.io ..read more
Planet Python
2d ago
PyPy v7.3.16: release of python 2.7, 3.9, and 3.10
The PyPy team is proud to release version 7.3.16 of PyPy.
This release includes security fixes from upstream CPython, and bugfixes to the garbage collector, described in a gc bug-hunt blog post.
The release includes three different interpreters:
PyPy2.7, which is an interpreter supporting the syntax and the features of Python 2.7 including the stdlib for CPython 2.7.18+ (the + is for backported security updates)
PyPy3.9, which is an interpreter supporting the syntax and the features of Python 3.9, including the stdlib for CPython 3.9.19 ..read more
Planet Python
3d ago
#626 – APRIL 23, 2024
View in Browser »
Asyncio Handle Control-C (SIGINT)
When the user presses CTRL-C on the keyboard, the OS raises an interrupt signal to your program. When writing concurrent code this can get complicated as the signal goes to the process. This article shows you how to handle capturing CTRL-C elegantly when using asyncio.
JASON BROWNLEE
Using raise for Effective Exceptions
In this video course, you’ll learn how to raise exceptions in Python, which will improve your ability to efficiently handle errors and exceptional situations in your code. This way, you’ll write more re ..read more