python

Back Open Paginator
18.02.2026 17:30
Reuven (@Reuven@fosstodon.org)

Does your #Python #Pandas column contain repeated strings? Turn it into a 'category' series (like an enum) to save memory:

df['c'].memory_usage() # 124,957,472

df['c'] = (df['c'].astype('category'))

df['c'].memory_usage() # 12,496,555

That's right โ€” 90% less memory!





Show Original Post


18.02.2026 17:20
vossisboss (@vossisboss@fosstodon.org)

It's time to get out the vote y'all! Wagtail has been nominated for TWO CMS Critic Awards! If you love our software, please show your support by voting for us.

Get your ballot here: cmscritic.com/vote

(P.S. If you're in NC, don't forget to vote in the primaries either! March 3 is Election Day!)

#WagtailCMS #Django #Python #OpenSource #CMS





Show Original Post


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

Delete File via 3 Methods

Delete File via 3 Methods This content explores interesting aspects of this topic. The information provided offers valuable insights and perspectives. Understanding this reveals how everyday things are more thoughtful than they appear. Next time you'll notice this detail. This fascinating detail shows how much thought goes into things we take for granted.

#python #coding #programming #tutorial #file #delete #remove

youtube.com/watch?v=mKfvVMZl69M




Show Original Post


18.02.2026 16:45
pythonrennes (@pythonrennes@social.breizhcamp.org)

Le #CFP pour la Soirรฉe des communautรฉs techniques de #Rennes du jeudi 9 avril est ouvert : framaforms.org/soiree-des-comm ๐Ÿ“ฃ

Ce format court (20 minutes + 5 questions) est l'occasion de s'essayer au partage de connaissances ou au retour d'expรฉrience, ou d'รฉbaucher une intervention plus longue pour une confรฉrence de plus grande envergure (comme le @breizhcamp.

Proposer votre confรฉrence sur un sujet qui vous passionne sur une des thรฉmatiques proposรฉes par la soirรฉe (#Python "for sure" ๐Ÿ˜Ž)




Show Original Post


18.02.2026 16:23
scy (@scy@chaos.social)

In asyncio Python, how would you implement the following HTTP client:

You have an initial quota of 300 HTTP requests. Every second, it gets replenished by 5, up to the maximum of 300. You can make as many requests as you want, but if your quota is exhausted, calls will block until it's been replenished. Waiting calls will get fulfilled in a FIFO fashion.

I know there's asyncio.Semaphore, but it's not designed for dynamically fluctuating limits over time.

#Python #asyncio




Show Original Post


18.02.2026 16:09
ubuntu_touch (@ubuntu_touch@mstdn.social)

Calcula la altura de caรญda libre de un paracaidista
con tres coeficientes de fricciรณn diferentes

#Galileo #Aceleracion #FreeFall #Python #Fisica software libre #Derivadas #Cambio #anzoรกtegui #Lecheria





Show Original Post


18.02.2026 16:03
effariwhy (@effariwhy@theforkiverse.com)

Is it just me, or are LLMs starting to produce python code with type hints for EVERYTHING? Call me lazy or a bad programmer, but I don't use type hints so aggressively.

When using llm generated code, do you "clean it up" to match your style, or leave it all in there?

#python #ai #llm #chatgpt #claude #copilot #gemini




Show Original Post


18.02.2026 15:49
raghuyadav50 (@raghuyadav50@econtwitter.net)

๐†๐ซ๐ž๐ž๐ญ๐ข๐ง๐ ๐ฌ ๐Ÿ๐ซ๐จ๐ฆ ๐†๐ฅ๐จ๐›๐š๐ฅ ๐‘๐ž๐ฌ๐ž๐š๐ซ๐œ๐ก & ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐ , ๐๐ž๐ฐ ๐ƒ๐ž๐ฅ๐ก๐ข !!

๐”๐ฉ๐ ๐ซ๐š๐๐ž ๐˜๐จ๐ฎ๐ซ ๐ƒ๐š๐ญ๐š ๐€๐ง๐š๐ฅ๐ฒ๐ฌ๐ข๐ฌ & ๐‘๐ž๐ฌ๐ž๐š๐ซ๐œ๐ก ๐’๐ค๐ข๐ฅ๐ฅ๐ฌ ๐ฐ๐ข๐ญ๐ก ๐†๐ฅ๐จ๐›๐š๐ฅ ๐‘๐ž๐ฌ๐ž๐š๐ซ๐œ๐ก & ๐“๐ซ๐š๐ข๐ง๐ข๐ง๐ , ๐๐ž๐ฐ ๐ƒ๐ž๐ฅ๐ก๐ข!

We offer comprehensive, professionally structured online trainings and workshops designed for students, research scholars, academicians, and professionals

๐–๐ž๐›๐ฌ๐ข๐ญ๐ž: ๐ฐ๐ฐ๐ฐ.๐ ๐ซ๐ญ๐ž๐๐ฎ.๐œ๐จ๐ฆ
๐„๐ฆ๐š๐ข๐ฅ: ๐ข๐ง๐Ÿ๐จ@๐ ๐ซ๐ญ๐ž๐๐ฎ.๐œ๐จ๐ฆ

#GlobalResearchAndTraining #OnlineWorkshops #DataAnalysis #ResearchSkills #Microdata #SPSS #STATA #RStudio #Python #Econometrics
#Education #Academic





Show Original Post


18.02.2026 15:43
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Chained Assignment in Python Bytecode

loriculus.org/blog/python-chai




Show Original Post


18.02.2026 15:12
rye (@rye@ioc.exchange)

I'm looking specifically for a python programming group that meets on a bi-weekly basis, virtually.

Recommendations and boosts welcomed.

#python #programming #swe #softwareCommunity #foss #pythonProgramming #duckType




Show Original Post


18.02.2026 15:09
mathsppblog (@mathsppblog@fosstodon.org)

#Python's itertools.starmap explained in one picture.

No words necessary.

Other than the words necessary to say that no words are necessary.
None beyond that.





Show Original Post


18.02.2026 15:07
TechKeysX (@TechKeysX@mastodon.social)

Three Basic Methods to join two dif lists in python - S1 EP05 P4 -





Show Original Post


1 ...464 465 466 467 468 469 470 471 472 473 474 ...1589
UP