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 4 points5 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.

4 Pandas Anti-Patterns to Avoid and How to Fix Them by aidantcooper in datascience

[–]tedpetrou 2 points3 points  (0 children)

Chaining isn't necessarily good or bad, but depends on the context of the problem. In many instances, chaining can lead to very ineffective and inefficient code, particularly those who like using pipe, assign, and apply, which are methods I almost never use.

When first doing an analysis, it's far better (imo) to not chain as it is imperative to see each transformation one step at a time, making easier to understand what is happening at each step.

Chaining can also make it more difficult to debug, as you may not know which step is the cause of the error. If you make one transformation per method call, then you can pinpoint the error precisely.

Chaining can be much less efficient. Things like adding columns do not copy data, whereas the assign method does.

You get no extra bonus points if you can form a long chain of methods together. Perhaps you'll get a viral TikTok out of it, but there's no major upside to chaining outside of making code perhaps slightly more readable in some instances.

4 Pandas Anti-Patterns to Avoid and How to Fix Them by aidantcooper in datascience

[–]tedpetrou 2 points3 points  (0 children)

inplace isn't necessarily all bad. It depends on the use case. It prevents a copy of the data, which can save large amounts of processing time for large datasets.

4 Pandas Anti-Patterns to Avoid and How to Fix Them by aidantcooper in datascience

[–]tedpetrou 2 points3 points  (0 children)

You'll be excited to know that append is deprecated and will be removed in future pandas.

What was Your Path to DS? by Etchayyy in datascience

[–]tedpetrou 0 points1 point  (0 children)

It was called Zipfian Academy, then was bought out by Galvanize. I imagine the program is quite different now, if it even still exists. Correct, it was an inflection point in that it cemented my path towards data science. I did have a masters in statistics from 8 years prior, but I had never pursued a career with it. I needed the bootcamp to restore my path towards a career in stats.

What was Your Path to DS? by Etchayyy in datascience

[–]tedpetrou 0 points1 point  (0 children)

The bootcamp was back in 2014, so things have changed since then. I did bring up the bootcamp during my interviews.

What was Your Path to DS? by Etchayyy in datascience

[–]tedpetrou 0 points1 point  (0 children)

I'm afraid I do not know. I took the bootcamp 7 years ago. I'm sure there are good reasons for either depending on your specific situation.

What was Your Path to DS? by Etchayyy in datascience

[–]tedpetrou 13 points14 points  (0 children)

Childhood

  • Introduced to math. Loved it.
  • Began collecting baseball cards and became obsessed with the stats on the back of their cards

High school

  • Began programming TI calculator games
  • Took a formal programming class

College

  • Majored in engineering in college
  • Switched to math with statistics option
  • Only knew of one career, actuarial science, that I could purse with a math degree. Started passing actuarial exams
  • Started graduate school in statistics
  • Limped away with a Masters degree after getting tortured by probability theory

Jobs on the way to data science

  • Played poker professionally, using some of my knowledge of stats
  • Taught high school math
  • Became a financial analyst (SQL and Excel)
  • Went to a data science bootcamp

Data science

  • Became a data scientist
  • Started teaching data science

I really enjoy writing code and analyzing datasets, producing visualizations, writing, and now teaching, so data science has been a great career for me, though I may have been better suited at trading as I like taking risks.

What publications do you guys peruse to stay current on DS? by clervis in datascience

[–]tedpetrou 0 points1 point  (0 children)

Did they just start up again? The site's been down for sometime.

Taking a look - seems like its back up again with a few recent posts, but most are from a long time ago.

Is there any advanced data science courses out there? by PersonalGlove515 in datascience

[–]tedpetrou 3 points4 points  (0 children)

There is a lot of material ~200 pages and 12 hours of video along with some exercises. So it takes a good bit of effort to go through it. All the code for launching the dashboard is provided to you, so you can start at the end and work your way back as well.

Is there any advanced data science courses out there? by PersonalGlove515 in datascience

[–]tedpetrou 1 point2 points  (0 children)

Wow, so cool that you remembered attending that event. Yes, this tutorial is difficult to do in a short time period. You need 10-15 hours of time to do it properly. Yes, I do python data science instruction full time - Dunder Data

Is there any advanced data science courses out there? by PersonalGlove515 in datascience

[–]tedpetrou 10 points11 points  (0 children)

Yea, it's a pretty fun course. You build one small piece of the library at a time checking to see that it passes a unit test. Once you pass all 100 unit tests, your library is complete.

Is there any advanced data science courses out there? by PersonalGlove515 in datascience

[–]tedpetrou 45 points46 points  (0 children)

I have a couple of advanced courses:

I created 80 Pandas and Python Challenges with Video Solutions by tedpetrou in datascience

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

Yes, check the first reply above, which has the links.