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)
Антропоморфизм или две злобных вишенки
Смотрю на вас как в зеркало... но в ответ не тронь, мы не для таких как ты, правда? Да мы не для таких, мы были созданы для настоящих мужиков. Когда одухотворяют неживые вещи для общения с ними это Антропоморфизм, а как называется когда человек с головой другого человека не разговаривает, но одушевляет части его тела, для общения с ними? Хм, ну да ладно от вымысла к реальности, а реальность у нас - 5ая статья в серии Шампур-Скребок выходит в публичное пространство. Route Load bot (телеграмм) для укладки груза.
https://habr.com/ru/articles/1004266/
#Python #FastAPI #telegramботы #telegramбот #Математика #Алгоритмы #3D_Bin_Packing #Docker_Docker_Compose #Redis_PostgreSQL #Webhook
Curso de SQL e Python Gratuito da Núclea Academy – Garanta Seu Certificado!
https://guiadeti.com.br/curso-sql-python-gratuito-nuclea-academy/
#analisedados #bancodedados #cursoonline #jupyternotebook #pandas #programacao #python #sql #tecnologia
https://guiadeti.com.br/curso-sql-python-gratuito-nuclea-academy/?fsp_sid=1024
Our project roadmap is now fully up to date for the next two releases ✨ https://wagtail.org/blog/our-roadmap-for-the-next-6-months/ That’s 11 improvements planned; half in #Python / #Dango for devs, half for CMS users!
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 […]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], ???]
Season 1 Lesson 5 Part 4 - Your First Steps - Hidden Power of Strip Methods - in Python #pythoncode #dataengineer #jupyternotebook #softwaredeveloper #codingtutorial #learncoding #pythonprogramming #dataanalysis #vibecoding #python
📰 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

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.

Linux and the open source community needs a dedicated overlays editor to generate assets that can be placed over videos.
https://newbluefx.com/titler-pro/
#Linux #open #source #python #Qt #pyside6 #video #overlay #overlays #OBS

@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

Python vs JS Webhook Idempotency Lock
Exactly-once processing when retries explode.
#python #javascript #idempotency #webhooks #retries #backendsafety #viralcoding #codecomparison #reliability
https://www.youtube.com/watch?v=HfijFstD6G4