Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile
Reuven M. Lerner

@reuvenmlerner

Helping you become more confident with Python and Pandas... on BlueSky.

ID: 24949956

linkhttps://lerner.co.il/ calendar_today17-03-2009 20:40:30

7,7K Tweet

26,26K Followers

1,1K Following

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Do you enjoy my YouTube videos? If so, then you've probably noticed that I use Jupyter notebooks (and not slides) when I teach. I put all of those notebooks on GitHub, in a public repo: buff.ly/3AK0GVx — so you can download them and experiment on your own. Enjoy!

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Want to level up your Python skills? Join the 30k coders who get my free "Better developers" newsletter every Monday, covering topics such as attributes, packages, iterators, and descriptors. Check it out at buff.ly/3V6eBJR, and improve your Python each week!

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Are you moving to The Good Place from X? Want to improve your #Python skills? Check out my starter pack of Python authors, speakers, and teachers!

Are you moving to The Good Place from X? 

Want to improve your #Python skills? 

Check out my starter pack of Python authors, speakers, and teachers!
Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Hi, all! This is just an occasional reminder that I'm not posting much here any more about #Python and Pandas. To follow me, plus lots of other Python instructors, just follow this QR code...

Hi, all!

This is just an occasional reminder that I'm not posting much here any more about #Python and Pandas.

To follow me, plus lots of other Python instructors, just follow this QR code...
Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Want to know if the US dollar rose or fell each year? That's easy. But if you want to know whether it rose or fell during the *first half* of each year? That's trickier! In my latest video, I walk you through how to solve such a problem using #Pandas: youtu.be/KMn16l7RoM4?li…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Have you ever merged two #Python #Pandas data frames together, only to find that one column has a _x suffix, and another has a _y suffix? Wonder where this comes from, and how you can change it? I explain it all in my latest video: youtu.be/1hYIC4sT5dk?li…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

You've been told not to use "for" loops in #Python #Pandas. Or to use "apply". Or ".str". But sometimes "str" is slower than "apply". How? In my latest video, I explain why — and demonstrate PyArrow strings, which run 20x faster. Watch here: youtu.be/Ovz8F464uo0?li…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Want to replace your #Python #Pandas data frame's default index with one of its columns? Use set_index, of course. But it's faster and easier to pass index_col to read_csv, letting you set indexes, multi-indexes, and time-series indexes. Watch and learn: youtu.be/kzUyeMcMQLw?li…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Many #Python developers think that "with" is about opening files. And it's certainly used there! But it's much more than that. In this video, I explain what "with" does, the context-manager protocol, and how to make your classes work with "with": youtu.be/i3iqByWM7iclis…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Reading an Excel file into #Python #Pandas isn't hard. But what if you want 2 columns to be a multi-index... and one is unnamed? In my latest video, I show you how to create a multi-index in such cases. *PLUS* assign, transpose, and pipe. Check it out: youtu.be/wf_nbP-S5rk?li…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Q: If we can retrieve from a #Python #Pandas datetime column, then what's the advantage of a time series? A: You can do three things that would otherwise be annoying or impossible: 1. Wildcard date retrieval 2. Date slices 3. Resampling Take a look: youtu.be/M4qhlzzrCXg

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

How many Americans bought electric vehicles (EVs) in the last decade? In the latest Bamboo Weekly, I pose six problems on this topic, using data from the Department of Transportation. Level up your #Python #Pandas skills every Wednesday: BambooWeekly.com

How many Americans bought electric vehicles (EVs) in the last decade?

In the latest Bamboo Weekly, I pose six problems on this topic, using data from the Department of Transportation.

Level up your #Python #Pandas skills every Wednesday: BambooWeekly.com
Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Trying to get an int from a user in #Python? You can, of course, run int() on the result from input(). But what if the user enters non-numeric data? In my latest video, I show you two ways to handle this, and why exception handling is the more "Pythonic": youtube.com/watch?v=nW-7FR…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Some #Python #Pandas calculations seem like they need "for" loops: • By how much does each row differ from the previous one? • Get the mean for each group of 5 consecutive rows But you don't need a loop. You need a Pandas windows methods. Learn more: youtube.com/watch?v=BzB0r6…

PyCon India (@pyconindia) 's Twitter Profile Photo

Introducing our 3rd #KeynoteSpeaker : Reuven M. Lerner Know more about him here : in.pycon.org/blog/2025/keyn… Still waiting for a sign to get your tickets for #PyConIndia2025 ? Buy now :in.pycon.org/2025/tickets/

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Confused by #Python comprehensions? You're not alone! Lots of people find the syntax a bit mystifying. In this video, I break down what comprehensions do, how to use them, and how to write them more clearly: youtube.com/watch?v=EqAEyl…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

Using #Python #Pandas? I've been teaching it for many years, and I've seen lots of people make the same mistakes. In my latest video, I review (and explain) those mistakes, and how to correct them: youtube.com/watch?v=ctplI8…

Reuven M. Lerner (@reuvenmlerner) 's Twitter Profile Photo

It's summer in much of the world, and this summer is hot! In the latest Bamboo Weekly, I pose six questions based on climate data. We also explore xarray, PyArrow, pivot tables, plotting, and memory use. Level up your #Python #Pandas every Wednesday: BambooWeekly.com !

It's summer in much of the world, and this summer is hot!

In the latest Bamboo Weekly, I pose six questions based on climate data. We also explore xarray, PyArrow, pivot tables, plotting, and memory use.

Level up your #Python #Pandas every Wednesday: BambooWeekly.com !