Pandawan retweetledi
Pandawan
377 posts

Pandawan
@geekowan
Python lover 🏳️🌈 https://t.co/WPxwRvfYMA
Katılım Kasım 2016
426 Takip Edilen40 Takipçiler
Pandawan retweetledi

Hey, with my friend g33kex, we built a custom GPT that connects to your Linux server and runs commands to troubleshoot it.
It is based on a Rust Client and a Python API.
Check it out here : github.com/g33kex/ServerW… & there chat.openai.com/g/g-htdz15vGv-…
English
Pandawan retweetledi

NOUVELLE VIDÉO !!!
- Mais au fait, il s'est passé quoi en 1929 ?
- Quoi ? Tu veux parler de la crise de 29 ?
- Ben oui !
- Mais qu'est-ce qu'on s'en fout ?
- Ouais t'as raison c'est question de merde...
🙃youtu.be/R_8sjao6tGI

YouTube
Français
Pandawan retweetledi

Unicode thanks Blue Blocker, our newest Silver Sponsor! #UnicodeSponsor #s1D54F" target="_blank" rel="nofollow noopener">unicode.org/consortium/ado…

English
Pandawan retweetledi
Pandawan retweetledi

No More GIL!
the Python team has officially accepted the proposal.
Congrats @colesbury on his multi-year brilliant effort to remove the GIL, and a heartfelt thanks to the Python Steering Council and Core team for a thoughtful plan to make this a reality.
discuss.python.org/t/a-steering-c…
English
Pandawan retweetledi
Pandawan retweetledi
Pandawan retweetledi
Pandawan retweetledi

There was even more fun than defaultdicts and Counters, if one can believe it ! #AdventOfCode

English
Pandawan retweetledi

@jaceklaskowski Source code, with the collect implicitly called by the sortByKey: #L304-L309" target="_blank" rel="nofollow noopener">github.com/apache/spark/b…
English

@jaceklaskowski sortByKey uses a RangePartitioner that does sampling on the RDD keys to determine partition boundaries, so that partitions are evenly distributed even if the RDD keys are not. It's probably that?
English

I must admit I can't explain why there are two Spark jobs for this apparently simple-looking RDD-based query in #ApacheSpark 3.1.1. Can you?
sc.parallelize(1 to 3).keyBy(_ % 2).sortByKey().count


English

Moderna vaccine was sequenced earlier this year, let's visualize it the same way we did for Pfizer here:
twitter.com/geekowan/statu…
Without surprise: very similar patterns

Pandawan@geekowan
Some data visualization on Pfizer/BioNTech vaccine bases (grouped in codon): (Thread)
English
Pandawan retweetledi

#Python question: What is the correct type annotation for the return value of a class method?
class P:
@classmethod
def from_half(cls, x: int) -> ???:
return cls(x * 2)
class C(P):
pass
English
Pandawan retweetledi

#Python psychology quirk: The dunder naming convention makes people feel icky when calling them directly. This natural aversion steers people away from using them as bound methods:
map(parent.__getitem__, children)
fetch = data_stream.__next__
English













