Ben Lindsay's Avatar

Ben Lindsay

@benjlindsay.com

Pythonista/Minneapolista

205
Followers
542
Following
295
Posts
12.11.2024
Joined
Posts Following

Latest posts by Ben Lindsay @benjlindsay.com

Looks like you can check the type of an incoming df and use that in an if block to make the right kind of series. I imagine you'd have to do something like that anyway (and a lot more often) without narwhals. I haven't used narwhals but just curious about how well it does/doesn't work

27.08.2025 03:55 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Interesting. If you don't mind sharing, what's the use case where you need to create a new series inside a function? Is that something you need to do frequently or do most operations you're dealing with fall more neatly into chainable operations on Polars or pandas dfs?

27.08.2025 03:55 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 2 ๐Ÿ“Œ 0
What about the pandas Index? - Narwhals

I see some series stuff here in point 2: narwhals-dev.github.io/narwhals/con...

That doesn't help with what you want to do?

27.08.2025 01:47 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

I really enjog this...sorry, I mean enjohy

25.06.2025 21:16 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

How is that not an Onion article?

04.04.2025 16:25 ๐Ÿ‘ 56 ๐Ÿ” 1 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Modified version of XKCD #303:

Header text: "The #1 programmer excuse for legitimately slacking off: 'My editor is vibe coding'"

2 stick figures are sword fighting on office chairs outside of an office door. Someone yells "Hey! Get back to work!" from inside the office door. One of the stick figure says "Vibe coding!". The person from inside the office says "Oh. Carry on."

Modified version of XKCD #303: Header text: "The #1 programmer excuse for legitimately slacking off: 'My editor is vibe coding'" 2 stick figures are sword fighting on office chairs outside of an office door. Someone yells "Hey! Get back to work!" from inside the office door. One of the stick figure says "Vibe coding!". The person from inside the office says "Oh. Carry on."

2025 Update to XKCD 303 xkcd.com/303/

31.03.2025 19:29 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Spare a thought for the constipated ones too

30.03.2025 16:25 ๐Ÿ‘ 4 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

...per project. (And obviously cases where conda is what you're used to and you don't want to bother switching) Any I'm missing that you know of?

27.03.2025 10:31 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I haven't used conda for a while and I'm curious about use cases where uv is not a good replacement for conda. The main one I can think of is shared machines where you don't have root access to install non-python dependencies, or cases where you need different versions of non-python dependencies...

27.03.2025 10:31 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

...or conda this whole time for a lot of data science folk. #DataBS

27.03.2025 02:29 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Is this a roughly correct #Python dependency management golden path history?
Before ~2015: Manual requirements.txt, maybe generated by pip freeze for apps
~2015-2021: pip-compile
~2021-2024: poetry
~2024-now: uv

27.03.2025 01:36 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Had to keep a spreadsheet to track which things got properly covered, which ones they still need something from me on, which things I just need to call again to check in etc. Huge PITA

25.03.2025 20:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I haven't had as rough of a time with insurance as it sounds like you had, but similar enough to empathize. Had a big surgery a couple years back and had to constantly call to ask for prior authorization and then to rerun the insurance for every little thing.

25.03.2025 20:00 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Thanks!

25.03.2025 01:19 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Curious how much knowledge gets passed from person to person in mentor/mentee relationships that doesn't really make it in books. Also curious about general rebuilding from something like that. I'd read that book if someone wrote it

23.03.2025 04:19 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Everyone can still remember who they are, who they work with, what they've been doing, and they have the capacity to relearn stuff. How long does it take to recover from that? What is permanently lost?

23.03.2025 04:19 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Thought experiment...imagine some scifi pulse weapon went off that instantly erased everyone all specific technical knowledge for everyone in the world. Like doctors suddenly don't know more than very basic anatomy, engineers lose all their expertise they've built up, etc.

23.03.2025 04:19 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Oof yeah...

17.03.2025 04:30 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

@talkpython.fm In the latest episode (#423), don't those hacker news graphs show a pessimistic picture that more and more people are looking for jobs and less and less people are hiring? Maybe I'm reading it wrong but unfortunately that would match what I've heard of the recent job market

11.03.2025 02:04 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Me (audio)reading David Copperfield:

Dora: "Think of me as your child bride"

Me: Oh no, please don't do that David

David: "ok my child bride"

Me: nope nope nope nope

David: "CHILD BRIDE CHILD BRIDE CHILD BRIDE CHILD BRIDE"

26.02.2025 02:30 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Humans also don't have real intelligence, it's just chemicals

23.02.2025 01:23 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

It's probably more than a couple months old if your hummus is already talking to you

22.02.2025 13:12 ๐Ÿ‘ 2 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

I spend all my time thinking "ok I'm turning a new leaf and paying attention to their name when they say it, definitely going to remember it, so proud of myself for paying attention to their name...oh no did they already say it I missed it what was it ah it's gone how did this happen again?"

22.02.2025 12:34 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Have you tried plotly? Haven't used either for a long while but plotly seemed like less work to get something reasonable, especially with plotly express

22.02.2025 00:32 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yep, this. It's a little annoying to have to remember to put that at the top of the notebook but it does the trick

21.02.2025 14:47 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Any chance that works on browser extensions? The bitwarden chrome extension is my main way of accessing my passwords

21.02.2025 11:32 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Do you use a password manager? If so, how do you deal with the passwords getting stored on clipboard history thing with maccy?

21.02.2025 02:06 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0

Yeah they changed the ci/cd actions section in PRs I think

21.02.2025 01:09 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

The answer is white in front of you

18.02.2025 15:36 ๐Ÿ‘ 0 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

Thank you friend! Will definitely take a look at that option

18.02.2025 12:54 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 1 ๐Ÿ“Œ 0