Filter by source
All sources GoCardless 6199 PubNub: 2474 Vercel 1700 Serverless 850 Ariya Hidayat 849 Jake Trent 816 Drew DeVault 784 Nic Raboy 734 SitePoint 689 Neon 506 Supabase 441 Shopify 435 Real Python 427 Soundcloud 409 Databricks 396 Johannes Brodwall 378 Jeremy Kun 328 Laravel 304 PostHog 296 Twilio 268 Cloudflare 258 Graham King 257 MapTiler 257 Carlos Becker 252 Scott Johnson 250 Lea Verou 244 Matt Aimonetti 231 Nvidia 231 Atomic Object 225 Andrew Bancroft 214 Lerner Consulting 193 Stack Overflow 191 Stanko Tadić 189 Freek Van der Herten 183 The Daily WTF 174 Raymond Chen 171 GitHub Old 162 Trivago 161 Discord 140 Dan Luu 137 Auth0 136 Swizec Teller 134 WyeWorks 134 Una Kravets 132 OCTO Technology 128 Codrops 126 Hostinger 126 Reginald Braithwaite 121 Android 120 Jane Street 120 Radek Pazdera 118 Warp 114 AWS 113 Antirez 110 Thoughtbot 107 Cerner 103 AdRoll 102 Changelog 101 Jake Wharton 101 Martin Fowler 99 Nelson Elhage 98 dbt Labs 97 Ilija Eftimov 94 Marek Majkowski 94 Docker 92 .NET 89 Finn.no 86 Nick Desaulniers 86 Sentry 86 Hayden James 85 Marcelo Rinesi 85 Timescale 85 Nordic APIs 84 Toptal 84 Luciano Mammino 80 Wingify 78 Jessie Frazelle 77 Monica Dinculescu 77 Matt Warren 76 Drivy 75 Jan Lelis 75 T.J. Maher 75 Paweł Chudzik 73 Kotlin 72 Ebay 69 Mykhailo Kozik 68 Evil Martians 65 Axel Rauschmayer 64 Mozilla Release 64 Confluent 62 Tailscale 61 Tania Rascia 60 0xADADA 59 Jake Yesbeck 59 Khan Academy 59 Dean Hume 58 SurveyMonkey 57 RoseHosting 56 Facebook AI Research 54 jOOQ 53 Sam Saffron 51 Monstermuffin 48 Rust 46 Huon Wilson 45 Philip Walton 45 Stripe 45 The Pragmatic Engineer 45 Dennis Felsing 44 HackerEarth 44 Fly.io 43 Josh Sherman 43 Gleb Bahmutov 42 Robin Ward 41 Philipp Oppermann 40 Armin Ronacher 36 Daniel Doubrovkine (dB.) 36 Grab 36 Pinterest 36 Alex Russell 35 Addy Osmani 34 Airbnb 34 Brandwatch 34 Tumblr 33 8th Light 32 Joe Nelson 32 Netflix 32 Palantir 31 Bartlomiej Filipek 30 Domenico Luciani 30 IPFS 30 Lazarus Lazaridis 30 Pamela Fox 30 Evan Miller 29 GitHub 29 Vanilla Java 29 Evan Hahn 28 Jonathan Snook 28 PagerDuty 28 Ruslan Spivak 28 Dereuromark 27 Okta 27 Petr Mitrichev 27 Red 27 Julia Evans 26 Mozilla Hacks 26 Bad Concurrency 25 CSC - IT Center For Science - Cloud Team 25 Eli Bendersky 25 GameChanger 25 Guido van Rossum 25 Jay Fields 25 Jeff Preshing 25 Life Plus Linux 25 Mark Seaborn 25 Oona Räisänen 25 Srinivas Tamada 25 Stephen Colebourne 25 Steve Yegge 25 Criteo 24 Grafana 24 Kogan.com 24 Squarespace 24 Dropbox 23 Crystal 22 Elegant Code 22 HomeAway 22 Babbel 21 Blundell's Android Tutorials 21 Erlang Solutions 21 Gusto 21 Dave Cheney 20 David Walsh 20 Guardian 20 Justin Weiss 20 Michael Herman 20 Miguel Quinones 20 Mike Ash 20 Ole Begemann 20 Paul Irish 20 Robert C. Martin 20 Spotify 20 Stefan Parker 20 Target 20 Wilfred Hughes 20 Yahoo 20 Aaron Patterson 19 Instacart 19 Jeff Atwood 19 Thumbtack 19 Arkency 18 Nikola Brežnjak 18 The Coded Self 18 Chris Wellons 17 Filippo Valsorda 17 Jerry Gamblin 17 Matthew Green 17 Wealthfront 17 Amit Merchant 16 Blender 16 Medium 16 Microsoft Python 16 Postmark 16 RocksDB 16 Stack Abuse 16 Yegor Bugayenko 16 Zach Holman 16 Bigcommerce 15 Edward Faulkner 15 High Scalability 15 Housing.com 15 Hypriot 15 Jacopo Tarantino 15 John Wittenauer 15 Lambda the Ultimate 15 Localytics 15 Rob Allen 15 Robin Wilson 15 Slack 15 Advanced Web Machinery 14 Bootstrap.com 14 Grofers 14 Helpshift 14 HubSpot 14 OLX 14 REA Group 14 Vlad Mihalcea 14 Feedzai 13 Indeed 13 Lyft 13 Michael Crump 13 Nextdoor 13 Scott Hanselman 13 Strava 13 Bazaarvoice 12 Canva 12 Haptik 12 Henrik Warne 12 Jon Skeet 12 Mary Rose Cook 12 Nicolas Liochon 12 Novoda 12 Steve Bellovin 12 Abu Ashraf Masnun 11 Badoo 11 Deliveroo 11 Eric Lippert 11 Findmypast 11 Hashrocket 11 JobTeaser 11 Kevin Burke 11 Marco Pivetta 11 New York Times 11 OpenDNS 11 Paypal 11 Ramon Fried 11 RisingStack 11 Small Improvements 11 Transferwise 11 VNGRS 11 Vinted 11 Zendesk 11 Alan Storm 10 Appnexus 10 Artsy 10 BBC 10 Benchling 10 Bill the Lizard 10 Bohops 10 Brendan Eich 10 Brendan Gregg 10 Brujo Benavides 10 Clever 10 Curalate 10 Daily JS 10 Daily Tech Video 10 Daniel Schmidt 10 Dot Dev (.dev) 10 Dragan Djuric 10 Eddie Smith 10 Eric Elliot 10 Erik Runyon 10 Evan Jones 10 Federico Cargnelutti 10 Flickr 10 Freeletics 10 GoSquared 10 Groupon 10 Harry's 10 Henrik Lau Eriksson 10 High Scalability 10 Hootsuite 10 Idontgetoutmuch's Weblog 10 Itamar Turner-Trauring 10 Jamis Buck 10 Jesal Gadhia 10 Joel Spolsky 10 Juan Treminio 10 Junior Grossi 10 Kirill Shevchenko 10 Larry Land 10 Matt Cutts 10 Matt Might 10 Mesosphere 10 Miro Cupak 10 Miro 10 NSHipster 10 Nick Craver 10 Ofer Zelig 10 Panorama Education 10 Pat Shaughnessy 10 Piotr Pasich 10 Pony Foo 10 Postman 10 ReactJS News 10 Regular Geek 10 Remind 10 RetailMeNot 10 Riot Games 10 Schakko 10 Skyscanner 10 Stitch Fix 10 Teamwork 10 Tikhon Jelvis 10 Tinder 10 TrueCar 10 Undocumented Matlab 10 Universe 10 UpGrad 10 VTS 10 Wojtek Gawroński 10 XING 10 Yammer 10 Yifan Lu 10 Zolmeister 10 eFounders 10 Josh Haberman 9 Nate Berkopec 9 Wemake.services 9 Mike Fogus 8 Ian Hummel 7 Ilya Grigorik 6 K. Harrison 6 Sensible 6 James Long 5 Thomas Young 5 Edgar Aroutiounian 4 Avenue Code 3 Bandcamp 3 James Hague 3 Raymond Hettinger 3 Algolia Anders Aarvik Ariejan de Vroom Asana Atlassian Bjørn Johansen Blake Erickson Bryan Cantrill Capgemini Chen Hui Jing Chien Tran Cloudera Cloudsmith CockroachDB Code with style! CodeName One Codelitt Codeship Commercetools Credit Karma Crowdfire Deezer DoorDash Dragan Gaic Engine Yard Entelo Envato Envoy Eventbrite Federico Tomassetti Figma GIPHY Galois Go GoDaddy Guilherme Rodrigues Hashnode Heroku Honeybadger Honeycomb IMVU Ievgen Kuzminov Instagram Jobandtalent John Resig Jonathan Dekhtiar Just Eat Kinvolk Kolosek Kyle Kingsbury LINE Linear LiveRamp Liveblocks Made Tech Marc Plano-Lesay Microsoft Edge Moove-it Mozilla Automation Team NPR Apps Nicolai Parlog (CodeFX) Oursky Oxide Computer Paul Lewis Peter Norvig Peter Steinberger Peteris Krumins PicCollage PlanetScale Prezi PullReview Rachel Kroll Radim Řehůřek Ray Wenderlich React Native Render Retool Schibsted Tech Polska Sharethis Sketch Sky Betting & Gaming Soshace Speedledger Sqreen Square Stackshare Swift Swiggy Takipi Temporal Turso Vena Solutions VersionEye Wayfair William Kennedy Zed Zendesk(old) theScore
193 articles Visit blog →

34. MIT just called for an educational revolution (lernerpython.com)

AI is the greatest technological revolution of our lifetimes, with far-reaching implications — both very good and very troubling — for every part of human society. As someone who teaches programming […] The post MIT just called for an educational revolution appeared first on LernerPython.

35. AI seminars — just one of the big changes at LernerPython (lernerpython.com)

July and August are often when people take a break or go on vacation. But for me, this summer has been super busy, full of writing and improving LernerPython based […] The post AI seminars — just one of the big changes at LernerPython appeared first on LernerPython.

36. PyArrow dtypes in Pandas aren’t always faster than NumPy (lernerpython.com)

Using PyArrow dtypes in Python Pandas isn’t always faster: %timeit s_pyarr.mean() # 21.5ms%timeit s_np.mean() # 47.3ms %timeit s_pyarr.nlargest(10) # 667ms%timeit s_np.nlargest(10) # 663ms The post PyArrow dtypes in Pandas aren’t always faster than NumPy appeared first on LernerPython.

37. PyArrow strings in pandas: Faster and smaller than object dtype (lernerpython.com)

PyArrow strings in Python Pandas are smaller than Python strings. But they’re also far faster: %timeit s_pyarr.str.len() # 106 µs%timeit s_py.str.len() # 1.6 ms In many examples, PyArrow was far […] The post PyArrow strings in pandas: Faster and smaller than object dtype appeared first on LernerPyth...

38. PyArrow dtypes in pandas: Reading CSVs with dtype_backend (lernerpython.com)

Want PyArrow dtypes in your Python Pandas data frame? The dtypes are double[pyarrow], int64[pyarrow], and string[pyarrow], not the normal NumPy ones. Note: This is still experimental… but it’s also the […] The post PyArrow dtypes in pandas: Reading CSVs with dtype_backend appeared first on LernerPyt...

41. Pandas missing values: Why assigning pd.NA gives you float64 (lernerpython.com)

Assign either np.nan or pd.NA to a Python Pandas series with a NumPy dtype, and it’ll be np.nan, a float. Which means the entire series has a dtype of float: […] The post Pandas missing values: Why assigning pd.NA gives you float64 appeared first on LernerPython.

42. Pandas int8 overflow: Why small dtypes wrap around silently (lernerpython.com)

If your dtype is too small, operations on your Python Pandas series will fail: Returns: 0 1101 1202 -126 # 🤯dtype: int8 This does give an error: s + 500OverflowError: […] The post Pandas int8 overflow: Why small dtypes wrap around silently appeared first on LernerPython.

43. Pandas read_csv dtype: Setting column types to save memory (lernerpython.com)

Reading a CSV into a Python Pandas data frame? Use the “dtype” keyword arg and a dict to specify dtypes, and avoid the int64/float64/str defaults: The post Pandas read_csv dtype: Setting column types to save memory appeared first on LernerPython.

44. Changing a Pandas column dtype: Use astype, not assignment (lernerpython.com)

Want to change the dtype of a Python Pandas series? You can’t — at least, not by assigning: Instead, use “astype” to get a new series, and replace the old […] The post Changing a Pandas column dtype: Use astype, not assignment appeared first on LernerPython.

45. Pandas dtypes: Checking column types with dtype and value_counts (lernerpython.com)

Get the dtype of a Python Pandas series with dtype: Get the dtypes of all columns in a data frame with “dtypes”, which returns a series: df.dtypes How many of […] The post Pandas dtypes: Checking column types with dtype and value_counts appeared first on LernerPython.

46. Pandas data frame preview: df.head and df.sample (lernerpython.com)

Want to get a quick look at a Python Pandas data frame you just created? Option 1, use df.head(n) to look at the first n rows: Option 2, use df.sample(n) […] The post Pandas data frame preview: df.head and df.sample appeared first on LernerPython.

47. Free real-world Pandas exercises, with solutions (lernerpython.com)

If you want to get better at Pandas, the hard part isn’t finding tutorials. It’s finding problems worth solving. Most exercises hand you a tidy little table of five rows […] The post Free real-world Pandas exercises, with solutions appeared first on LernerPython.

48. Pandas read_csv reads zipped CSV files without unzipping (lernerpython.com)

Want to read a zipped CSV file into a Python Pandas data frame: Just pass the filename to read_csv: The file can contain a single CSV file, with an extension […] The post Pandas read_csv reads zipped CSV files without unzipping appeared first on LernerPython.

49. Excel sheet names in Pandas: Listing them with pd.ExcelFile (lernerpython.com)

What sheets are in an Excel document you’re about to read into Python Pandas? You can check with: You’ll get a list of Python strings back. The post Excel sheet names in Pandas: Listing them with pd.ExcelFile appeared first on LernerPython.

50. Pandas isin vs | for filtering: which is faster (lernerpython.com)

Which is faster in Python Pandas, | or isin? I prefer isin; it’s clearer to write and read. Plus, fewer worries about parentheses. But is it faster? Depends on the […] The post Pandas isin vs | for filtering: which is faster appeared first on LernerPython.

51. Pandas isin: Filtering rows that match multiple values (lernerpython.com)

Want rows in a Python Pandas data frame that might have several values? Another way (besides the | I showed yesterday) is the “isin” method: We’ll compare isin vs. | […] The post Pandas isin: Filtering rows that match multiple values appeared first on LernerPython.

52. Pandas OR conditions: Filtering rows with | and parentheses (lernerpython.com)

Want rows in a Python Pandas data frame that might have several values? You can use the | operator, but be sure to use () to avoid precedence issues: The post Pandas OR conditions: Filtering rows with | and parentheses appeared first on LernerPython.

54. Filtering rows in Pandas with .loc and pd.col (lernerpython.com)

Filtering rows in a Python Pandas data frame? Use .loc: pd.col refers to the previous line’s returned data frame. So we can stack them: The post Filtering rows in Pandas with .loc and pd.col appeared first on LernerPython.

55. Python list memory: Why sys.getsizeof ignores the elements (lernerpython.com)

How much memory does a Python list use? sys.getsizeof will tell you, sort of: It reports the memory used by the list, but not its elements: The post Python list memory: Why sys.getsizeof ignores the elements appeared first on LernerPython.

58. Python stderr: Printing with sys.stderr and the file kwarg (lernerpython.com)

Want to print to stderr, not stdout, in a Python program? Use sys.stderr and the “file” kwarg: stdout and stderr often look identical in a terminal — but they aren’t! The post Python stderr: Printing with sys.stderr and the file kwarg appeared first on LernerPython.

60. Redirecting sys.stdout: Assigning print output to a file (lernerpython.com)

Want stdout from your Python program to go elsewhere? Assign sys.stdout to a writeable file. (Don’t forget to keep the original around!) Better: print’s file kwarg. The post Redirecting sys.stdout: Assigning print output to a file appeared first on LernerPython.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open