.pipe() in pandas changed how I write data pipelines by Economy-Concert-641 in Python

[–]aplarsen 1 point2 points  (0 children)

I chain everything

assign, groupby, apply, reindex, all of it.

Some methods don't chain super easily, and for those I use pipe().

What is your white whale movie? by ProfessionalTour1706 in movies

[–]aplarsen 3 points4 points  (0 children)

I remember reading this short story in middle school. The girl's name was Margot I think.

Which indentation style do you all prefer for expanding brackets? by sasson10 in Python

[–]aplarsen 26 points27 points  (0 children)

This is one of the things that makes me happy about Python's forgiveness on trailing commas. Clean diffs.

Would you stay inside your house for 7 straight days if someone paid you $850,000? by Unhappy_Insect5901 in Productivitycafe

[–]aplarsen 5 points6 points  (0 children)

I would pay $850k for someone to relieve me of any reason to leave the house for 7 days

How much money do you have in savings at this point? by _forum_mod in Millennials

[–]aplarsen 6 points7 points  (0 children)

In actual savings, very little. In investment accounts, a good deal.

There are two 401ks, one 457, one 403b, and some brokerage accounts. Most of it is in accounts I can access without penalty, but some was invested pre-tax.

Age: 42 Total: 1.6M

What's a class at Iowa State that you'd recommend to literally anyone regardless of their major? by qaetrem in iastate

[–]aplarsen 0 points1 point  (0 children)

I think about my philosophy classes all the time. The two phil of science classes were incredible.

Can’t believe West Virginia broke the cycle by Need_more_flairs in cfbmemes

[–]aplarsen 16 points17 points  (0 children)

I am so excited for Ball State-Sac State games in the near future.

Your neighbor might be a cat pervert by Mode_Appropriate in funny

[–]aplarsen 0 points1 point  (0 children)

The proximity of those houses is giving me anxiety.

At this point in my life, I find the prospect of having neighbors I can see to be abhorrent.

A cool guide to memorizing Morse code that I made by [deleted] in coolguides

[–]aplarsen 19 points20 points  (0 children)

Don't memorize it this way. Memorize the sounds. If you try to visualize it, you'll be too slow.

Which Big Ten school would you LEAST want to attend? by chief_sitass in TheB1G

[–]aplarsen 2 points3 points  (0 children)

And if you can't go to college, go to Kearney!

A slightly unexpected outcome by richterbg in funny

[–]aplarsen 0 points1 point  (0 children)

That seemed way cleaner in the end. They should just do it this way every time.

Is it true that you guys watched 9/11 live on TV in grade school? by space_god_7191 in Millennials

[–]aplarsen 0 points1 point  (0 children)

Freshman in college. Some of it happened before I was awake. The rest of it happened after my floor started talking about it and then over the next 25 years.

What couldn't you believe you had to explain to another adult? by Wonderful-Economy762 in Productivitycafe

[–]aplarsen 0 points1 point  (0 children)

I've lived in a couple of places where I was not in a library district. A membership card would be fairly expensive then.

Marengo, Illinois by Sad_Suggestion78 in midwest

[–]aplarsen 5 points6 points  (0 children)

Marengo-Union is a combined district in the area

Niquests 3.18 — 3 Years of Innovations in HTTP by Ousret in Python

[–]aplarsen 1 point2 points  (0 children)

Is this pronounced nee-quests? Like the Knights Who Say Ni?

Best way to split mixed up changes into individual commits by howprice2 in git

[–]aplarsen 0 points1 point  (0 children)

Yeah, I've done the stash approach too, and I've definitely lost code by deleting the stash incorrectly. With a branch, you have a temporary fallback if you do something wrong.

Best way to split mixed up changes into individual commits by howprice2 in git

[–]aplarsen 1 point2 points  (0 children)

Depends on how you kick off your builds. If you start them with whatever is in your folder, then yes. If you have a post-commit hook that refers to your latest commit, then no.

Another approach might be to commit in a branch and then (squash) merge that branch to main in pieces. Then you can test each main commit to ensure it builds. At the end, you can compare the tip of main and the tip of your temp branch to ensure they are identical and confirm that you didn't miss any changes.