python

Back Open Paginator
26.02.2026 20:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #57 (of 365):

Invent your own comprehensions (... sort of)

In Python we can invent "I can't believe it's not a comprehension" comprehensions.

Python has set comprehensions:

word_set = {w.strip(".,!?\"'") for w in text.split()}

But it doesn't have frozenset comprehensions.

But there is a built-in frozenset class that CAN accept an iterable of values to make into a new frozenset....

🧵(1/3)

#Python #DailyPythonTip




Show Original Post


26.02.2026 20:12
habr (@habr@zhub.link)

Антропоморфизм или две злобных вишенки

Смотрю на вас как в зеркало... но в ответ не тронь, мы не для таких как ты, правда? Да мы не для таких, мы были созданы для настоящих мужиков. Когда одухотворяют неживые вещи для общения с ними это Антропоморфизм, а как называется когда человек с головой другого человека не разговаривает, но одушевляет части его тела, для общения с ними? Хм, ну да ладно от вымысла к реальности, а реальность у нас - 5ая статья в серии Шампур-Скребок выходит в публичное пространство. Route Load bot (телеграмм) для укладки груза.

habr.com/ru/articles/1004266/

#Python #FastAPI #telegramботы #telegramбот #Математика #Алгоритмы #3D_Bin_Packing #Docker_Docker_Compose #Redis_PostgreSQL #Webhook




Show Original Post


26.02.2026 19:19
guiadeti (@guiadeti@flipboard.social)

Curso de SQL e Python Gratuito da Núclea Academy – Garanta Seu Certificado!

guiadeti.com.br/curso-sql-pyth

#analisedados #bancodedados #cursoonline #jupyternotebook #pandas #programacao #python #sql #tecnologia
guiadeti.com.br/curso-sql-pyth




Show Original Post


26.02.2026 19:05
wagtail (@wagtail@fosstodon.org)

Our project roadmap is now fully up to date for the next two releases ✨ wagtail.org/blog/our-roadmap-f That’s 11 improvements planned; half in #Python / #Dango for devs, half for CMS users!




Show Original Post


26.02.2026 19:01
2026 (@2026@novatopflex.wordpress.com)

Hype for the Future 117L → Hyperlocal Surveying with Python?

Introduction In the Python programming language, version 3, hyperlocal surveying with the Python programming language, such as parcel-by-parcel, is effectively impossible without knowledge of information that can consistently change and may not necessarily remain steady throughout. Many of the lines for school and special districts may or may not overlap with the city, borough, town, township, county, or related lines, depending on the particular community in question. Hyperlocal Survey […]

novatopflex.wordpress.com/2026




Show Original Post


26.02.2026 18:43
steffo (@steffo@a.junimo.party)

How do you type-annotate a 1-dimensional array with a custom dtype in numpy?

Specifically, what goes in place of the question marks here:

numpy.ndarray[tuple[int], ???]

#Python #numpy




Show Original Post


26.02.2026 18:18
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 5 Part 4 - Your First Steps - Hidden Power of Strip Methods - in Python





Show Original Post


26.02.2026 18:04
feed (@feed@igeek.gamer-geek-news.com)

📰 5 Useful Python Scripts for Automated Data Quality Checks

Bad data leads to bad decisions. These Python scripts will help you catch data quality issues before they cause problems.

📰 Source: KDnuggets
🔗 Link: https://www.kdnuggets.com/5-useful-python-scripts-for-automated-data-quality-checks

#DataScience #Python





Show Original Post


26.02.2026 17:30
Reuven (@Reuven@fosstodon.org)

What's the difference between join and merge in #Python #Pandas?

• join combines based on the indexes. Perfect when both data frames refer to the same person IDs, product names, or dates
• merge combines based on *any* two columns — but you must specify which ones.





Show Original Post


26.02.2026 17:12
textovervideo (@textovervideo@fosstodon.org)

Linux and the open source community needs a dedicated overlays editor to generate assets that can be placed over videos.

newbluefx.com/titler-pro/

#Linux #open #source #python #Qt #pyside6 #video #overlay #overlays #OBS





Show Original Post


26.02.2026 17:05
willy (@willy@social.whilewerebothrunning.com)

@basilbasilbasil you mentioned De Jong attractors: I had to try. parameters a=1.4, b=-2.3, c=2.4, d=-2.1: three million points, four rules. what comes out looks like a moth. I didn't plan that. the butterfly parameters were waiting in four numbers. #generativeArt #strangeAttractors #python





Show Original Post


26.02.2026 17:01
PythonPeak (@PythonPeak@mastodon.social)

Python vs JS Webhook Idempotency Lock

Exactly-once processing when retries explode.

youtube.com/watch?v=HfijFstD6G4




Show Original Post


1 ...418 419 420 421 422 423 424 425 426 427 428 ...1591
UP