bterwijn.bsky.social
Software Engineer and Educator at University of Amsterdam. Developer of memory_graph, a Python execution visualizer: https://github.com/bterwijn/memory_graph#readme
👤 Joined on 19 May 2025
Followers
Following
Total Posts
@bterwijn.bsky.socialYou can remove NaN from a #Python #Pandas data frame with dropna, but be careful: It removes rows with even one NaN, which can be overkill. Pass "thresh" to allow some rows to remain, even if they contain NaN: df.dropna(thresh=2) # keeps rows with 2 or more non-NaN values
Show PostIf you're in New York and have been meaning to learn to code, I have a 3-hour Python tutorial for complete beginners at NYC Resistor on Sunday, Oct 11. www.eventbrite.com/e/computer-p...
Show PostAny New Yorkers following me who are interested in learning some basics of computer programming? I'd HIGHLY recommend checking this out!😎👍 While I can only speak from using a few of @alsweigart.bsky.social 's books, he does a FANTASTIC job making learning python fun.
Show Post“The reproducibility of pseudorandom numbers is useful for automated tests and for debugging.” Read more 👉 pym.dev/random-numbe... #Python
Show PostFriday brings #Python With defaultdict + lambda you can build a nested tree that never raises a KeyError. Isn't that cool?
Show Post