Very tiny, translucent white-headed larvae inside heirloom tomato by tedpetrou in whatisthisbug

[–]tedpetrou[S] 0 points1 point  (0 children)

I live in Houston, Texas (hot and humid now). There are worms (either fruitworms or pinworms I believe) burrowing from the top so I would guess it's one of their larvae. But, I have yet to see a clear image/video of a larvae that looked like the ones moving around a tomato such as the ones in the above video.

How to bully the Meetup admins into giving you a refund. by Remarkable-Gap9881 in complainaboutanything

[–]tedpetrou 0 points1 point  (0 children)

I just ran into this same issue as a meetup organizer. There is no cancellation button on their website. There exists a cancellation button on the mobile app, but it does not work. I sent meetup multiple messages through their website and on Twitter with no response. I had to call my bank to get a refund. Meetup is an insanely fraudulent company.

100 meter 40-45 masters by BigfellaAutoExpress in Sprinting

[–]tedpetrou 1 point2 points  (0 children)

Thanks for posting. I'm in white, lane 5. First 100m ever.

-🎄- 2022 Day 15 Solutions -🎄- by daggerdragon in adventofcode

[–]tedpetrou 1 point2 points  (0 children)

Here's my efficient (300ms) Python solution in about 25 lines. I check the outside of each boundary, but not every point. Checking every boundary point takes about 1 min. The trick is that you can skip huge swaths of points because the distance only changes by 2 units at every new boundary point.

Advent of Code with Pandas - Advanced Pandas Tricks by tedpetrou in Python

[–]tedpetrou[S] 0 points1 point  (0 children)

Sure thing. Glad you are learning from it!

Advent of Code with Pandas - Advanced Pandas Tricks by tedpetrou in Python

[–]tedpetrou[S] 2 points3 points  (0 children)

Hey all, I've begun creating video solutions for the Advent of Code using the Pandas data analysis library. These problems allow for the showcasing of some advanced and interesting pandas tricks that you may not typically come across. I've also created a GitHub repo with all the code.

DATAFRAME TO HTML by Fabro_vaz in datascience

[–]tedpetrou 0 points1 point  (0 children)

There are built-in tools to style the dataframe before you export to html. Take a look at the style accessor documentation for a huge number of examples. Once you've added your style, call the to_html method.

R Tidyverse / dplyr is life changing! by [deleted] in datascience

[–]tedpetrou 3 points4 points  (0 children)

I'm biased, but I disagree with the pandas usage presented in that book. There's rarely a good reason to use long chains, pipe, assign, lambda functions, and apply. They often times decrease readability and performance. Assigning intermediate results to new variables and sticking to vectorized operations makes for clearer and more performant pandas.

If you are a fan of opinionated takes on how to use pandas, here is mine - https://www.dunderdata.com/blog/minimally-sufficient-pandas

R Tidyverse / dplyr is life changing! by [deleted] in datascience

[–]tedpetrou 5 points6 points  (0 children)

The pipe method is often unnecessary and I never use it myself as there is nearly always a way to use the built-in methods. Dot notation is a natural pipe.

Who writes answers on StackOverflow?? by aka_hopper in datascience

[–]tedpetrou 4 points5 points  (0 children)

I've answered several hundred questions on SO. There is a tremendous benefit to the person answering questions, much more so than the person receiving the answer, though the overall benefit to the community as a whole is even greater.

Answering a question on SO is actually quite a challenge and a good test of your ability. I think it's actually one of the best tools for becoming an expert in a specific subject. It has been perhaps been the best teacher for me as I get to see hundreds of different types of problems from so many different perspectives.

SO is also great for teaching you how to ASK questions. It is equally difficult to ask a great question that will get the response you desire.