Better HN
topnewbestaskshowjobs
Log inSign up

__mharrison__

1,517 karma · joined Apr 1, 2011 (15y ago) · 937 submissions

Effective Pandas, Effective Polars, Effective XGBoost, Effective Visualization, and Effective Testing author. Mountain, Frisbee sports. Corporate trainer help your team level up w/ AI, pydata ecosystem https://store.metasnake.com @__mharrison__
Submissions

comment 3d ago · link · parent

A couple of thoughts: I feel for your situation; being out of work sucks.

Also, never quit a job unless you have something else lined up. I get that working for crappy bosses sucks, or that layoffs might be coming, but you should put yourself first.

Always ensure you have a soft landing. (Also, you have leverage when you are already employed.)

I don't think you should lie. Even if everyone else is doing it.

The interviewing game sucks, and our industry has to deal with it. Just this week (I'm a corporate trainer), a company wanted to interview me to do some training for them. The interviewer wasn't technical; it was an HR person. They went through their rounds of canned questions, hadn't researched my experience at all, and then disqualified me because they claimed I couldn't teach a subject I have a Coursera course on.

Working with HR people can be a huge pain. I try to get around them whenever possible.

As for tactical advice, if you've worked in specific verticals (it sounds like you worked in insurance), here is what I would do. I'd use AI to implement what you did at your last insurance company. I've done this exercise and found a 100x speedup in implementation speed. Use that product/experience to get a foot in the door.

If you have relevant vertical experience and you know how to apply that to AI, that is very valuable. Shop the AI+specific knowledge angle.

Networking is still key for me. Conferences are a great place to meet others. I've also found local meetups have been great. After COVID, they might be hit or miss, but if you can find a local meetup or three, you might get connections that help you get a foot in the door.

Good luck.

comment 1w ago · link · parent

Are my eyes just failing me or is there no date on this post?

Otherwise, I love this. I was pretty involved in Python testing circles (there was an old Python in tears mailing lists,) and would love to find similar for agentic testing.

comment 1w ago · link · parent

Be cool to have a strict Python that actually runs fast with types...

comment 1w ago · link · parent

Thanks, Tim. Your contributions have helped me feed me family over the years. RIP

(I've taught the Zen of Python, doctests, timsort, and more during my career.)

comment 2w ago · link · parent

Great points.

Once if the great things about books is that the author was required to plan out a path to take you along. Most shorter content skips that.

Also love physical books and the spatial reinforcement.

(I'm probably biased as a book author because books sales are definitely in a slump.)

comment 2w ago · link · parent

I use my Stream Deck XL+ for this.

Have actually vibe coded a few "apps" for this. Most recent being a weather app that switches to radar view when I tap the knob and allows me to turn the forecast through time.

Now I need to go make the "make no mistakes" macro for fun!

comment 3w ago · link · parent

Yeah, this was my initial thought as well... I guess they didn't ask anyone before choosing the new naming scheme. But that isn't particularly surprising.

comment 3w ago · link · parent

I have a touchscreen ThinkPad. As an instructor, I found it useful to draw on slides with the pen. I rarely touch it otherwise.

I mostly use MBPs now and resort to using my iPad as a mirrored screen to draw on slides. It is hacky.

comment 3w ago · link · parent

No pen support is lame.

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.

comment 3w ago · link · parent

Maybe AI will finally help usher in macross movie after so many years... Ducks

comment 4w ago · link · parent

I hope the Stanford profs got paid... this alum is still owed $60k for ANT pirating my books.

comment 4w ago · link · parent

Numba does this. Generally as fast as Cython, but much easier to write.

comment 1mo ago · link · parent

How do you ensure that bootstrapping a new project has good code?

comment 1mo ago · link · parent

Wow, cool aesthetic. I feel like the this is what the cybertruck should have looked like but they didn't quite finish the design.

comment 1mo ago · link · parent

Have been using this in my terminal, editors, and books for a few years.

Lovely font.

comment 1mo ago · link · parent

That's the great thing about art. Reasonable folks can disagree about what art is...

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.

comment 1mo ago · link · parent

Glyph didn't convince me. (And I'm biased; I've sat in multiple sessions given by his dad 20 years ago about creating good code.)

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.

comment 1mo ago · link · parent

There was a class action lawsuit that listed pirated books

comment 1mo ago · link · parent

That's a great question. I don't know what the future will be like, but looking into my crystal ball, I'm not seeing much hand-generated code. Very little (or no) human code review.

Having the taste and business sense to develop the right thing will be important. If it stops working, ask the AI to fix it.

comment 1mo ago · link · parent

I teach many data/ML courses for clients using their data. It is amazing how many insights both the students (as SMEs of the data) and the teacher (as an SME of the techniques) can have when going through certain techniques together. Quite often, we get a "those last 5 minutes more than paid for the training" insight.

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.

comment 1mo ago · link · parent

As an educator and author, I feel Molly's pain (Anthropic owes me $60k for pirated books). My course and book sales have dropped significantly. I feel like much of the value in my book-based knowledge is harder to discover in AI agents. (One example might be inspecting SHAP values from XGBoost models and using that as feedback to feature engineering for a linear model (like Logistic Regression)). So I'm afraid more advanced techniques might go by the wayside in the name of delivery speed.

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.

comment 1mo ago · link · parent

I've been in multiple workshops for creators that were ran by LinkedIn. They have all mentioned not to use links.

BTW Twitter penalizes links as well.

comment 2mo ago · link · parent

I misspoke, you need to use .groupby/.transform to add a new filtering column:

    (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"))
    )

comment 2mo ago · link · parent

Would love to see examples.

comment 2mo ago · link · parent

I'm confused, you can use filter after a groupby in pandas...

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.

comment 2mo ago · link · parent

Those are generally rules of thumbs for data pipelines. (Plus duckdb can read Excel these days I think).

comment 2mo ago · link · parent

This is a common complaint I get all the time (heard it this week while teaching pandas). I compare this to whitespace indentation in Python.

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).

comment 2mo ago · link · parent

I looked at your code very quickly, but it looks like you need to use .filter after a .groupby...

comment 2mo ago · link · parent

Did you ever report these issues to polars developers?

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.)

comment 2mo ago · link · parent

Most of the time it works, but there are still corner cases throughout the python ML ecosystem where polars fails.

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.)

12345
32