__mharrison__
I mostly use MBPs now and resort to using my iPad as a mirrored screen to draw on slides. It is hacky.
Having said that, I'd be afraid to touch it. On one of my MBPs, I held it by putting my hands near the hinge, with my thumbs resting in the lower corners of the screen. Over (a short period of) time, the protective(?) coating on the screen wore away.
Lovely font.
My career and actions are proof to me that although I appreciate code and spent almost half of my career teaching folks the "correct" way to write Python, I (personally) don't view code as art.
Code can be pretty, but I don't consider it art. Just like I don't consider technical documentation art.
I much prefer being able to talk to my computer and tell it to make a Stream Deck plugin to control the lights in my office and create a weather app (and show the precipitation forecast on the buttons) in 10 minutes, rather than me futzing around for two days to create something similar. Or to create the world's first(?) Telemark ski game from my Strava dumps in 30 minutes.
Admittedly, my book and course sales are down quite a bit (which I would mostly blame on AI). I'm not sure what the future holds, but change and adaptation have been pretty constant in my 25+ year career.
I do have concerns about what the minimal knowledge requirements will be for product development in the future.
Having the taste and business sense to develop the right thing will be important. If it stops working, ask the AI to fix it.
I think that is possible with AI (I haven't experienced it), but I also feel like most folks use basic/naive/cursory techniques when using AI because they don't know what they don't know.
I use AI both in the cloud (I tend to avoid Anthropic...) and with local models.
I've probably written more code in the past year than in my whole career. I can now create what I desire (I just created a telemark skiing game over the weekend based on my Strava segments). I think this has helped my teaching as well. In a recent ML course, I created many interactive examples that in the past were just doodles on my whiteboard, but are now embedded in the notebooks I give students.
I've also taught a few AI courses to clients as well. However, with the inevitable rust/ASM-ification of everything, I'm not sure how long those skills will be valid. I do, however, think that having a human in the loop for ML and data analysis is still important.
BTW Twitter penalizes links as well.
(sales
.assign(country_median=lambda df_: (
df_.groupby("country")["amount"].transform("median")
))
.query("amount <= country_median * 10")
.assign(net=pd.col('amount') - pd.col('discount'))
.groupby("country", as_index=False)
.agg(total=("net", "sum"))
)It's late here, I'm going to bed, perhaps I'll write the code tomorrow when I'm at my laptop and not on my phone.
Lots of folks complain about it before using it. After they use it it is a non issue.
If it really is an issue (and it generally isn't a cause of vectorization removal when used correctly) and you can't get over the syntactic noise if the lambda, pandas 3 introduced pd.col (that work in most (I filed a big about some exceptions) places when you'd use lambda).
I reported many bugs to both pandas and polars over the years and both teams tend to address relatively big ones. (Still have some outstanding pandas bugs that I think are a big deal but the devs disagree.)
This and the decision not to natively plot with matplotlib keep me in pandas for most tasks. (Plus there's is still a relatively large demand for pandas training.)
I still prefer (and use) Pandas for EDA. I think matplotlib integration is a better choice for most viz.
Also, I'm probably in the top 3-5 worldwide for number of folks I've trained with pandas. I offer Polars training and there is little demand for it.
Use SQL if you need to move data around.
I agree that the API has warts, though typically it is more concise than polars.
Pandas is not perfect, it has a bunch of warts. But it is good enough for most. (And many of those folks are using Excel or tableau or power bi... These were the types I was training this week).
If you have medium data, migrating from pyarrow backed pandas to duck or Polars is trivial.