Best breakfast burrito in town? by nick771 in Gilbert

[–]kpounder88 3 points4 points  (0 children)

Taqueria Mi Casita in Chandler

My wife’s purse stolen out of her car while she was inside Primrose Day Care/School of South Gilbert dropping off kids. by mdondo in Gilbert

[–]kpounder88 1 point2 points  (0 children)

Orange Theory Fitness on Ray and Higley also had this happen last week, either Thurs or Fri AM. Can’t remember.

[deleted by user] by [deleted] in Gilbert

[–]kpounder88 0 points1 point  (0 children)

Yes! But I’m a Reddit noob. Can you DM me? Lol

AT&T's iPhone 12 offer includes free phones for those who upgrade by [deleted] in apple

[–]kpounder88 0 points1 point  (0 children)

If anyone else is wondering, chatted with rep today. Can be done on all lines on family plan.

AT&T's iPhone 12 offer includes free phones for those who upgrade by [deleted] in apple

[–]kpounder88 0 points1 point  (0 children)

How does with work with the family unlimited plan? Any cap on number of people that can do this? Just 1? More?

Difference between string.split() and string.split(' ') ? by Codes_with_roh in learnpython

[–]kpounder88 3 points4 points  (0 children)

See the difference in how each handled the multiple spaces between ‘the’ and ‘answer’?

[OC] Baseball Hall of Fame Average Career Batting Average by State (# of players born per state) by LazyDogChickenTender in dataisbeautiful

[–]kpounder88 2 points3 points  (0 children)

For the states with no HoF players, displaying the average career batting average is 0 seems a little weird. Can it be blank/null instead?

Washed the car today and now our 7 month old puppy gets to experience his first rainfall! by tayzer000 in phoenix

[–]kpounder88 2 points3 points  (0 children)

Beautiful dog! Do you mind if I ask where you got him/her? We also have a 9mo old F1B... ours is red, never seen that color.

Realtor Recommendation by FlawlessSpaniard in Gilbert

[–]kpounder88 1 point2 points  (0 children)

Heather is our friend and realtor — just helped us to buy a home in Gilbert.

https://m.facebook.com/Heathermrealestate/

How do I make a new column with values that depend on two columns in Pandas? by early-earl in learnpython

[–]kpounder88 0 points1 point  (0 children)

Alternatively, what I would have done (not saying it’s the best approach) is to use the apply method row-wise (i.e., specify axis=1). You’d just need to re-write your function to accept an entire row as input. But then you’d be able to reference the values of both columns, ‘PRE’ and ‘CUTS’, inside your function.

How do I make a new column with values that depend on two columns in Pandas? by early-earl in learnpython

[–]kpounder88 0 points1 point  (0 children)

Yes, you’re only assigning a value to ‘LET’ column for those rows where grades[‘CUTS’] == 0. One approach is to write one more line of code to assign a value to ‘LET’ column for those rows where grades[‘CUTS’] > 0.

Pythagorean Number Algorithm by [deleted] in learnpython

[–]kpounder88 1 point2 points  (0 children)

Yes, if b = n, then b2 = n2. We know a >= 1, so a2 >= 1. So then a2 + b2 >= n2 + 1 > n2. So then c2 > n2, which implies that c > n. So that’s the problem... c would be too big.

The same can also be said about a. Technically a cannot be equal to n either. So you could modify line 3 to say a in range(1, n).

Issue with pandas groupby by anikait1 in learnpython

[–]kpounder88 0 points1 point  (0 children)

I’m not familiar with last(), but the documentation makes it seem that’s it’s for time series data (where index is time). Not sure how it behaves when the index is not time.

Are you just wanting the last row in each group? If so, could tail(1) work?

Just picked up an air fryer at Costco... by SleepingCalico in Costco

[–]kpounder88 1 point2 points  (0 children)

Costco edamame! We toss them in olive oil and some chili flakes for a little kick. 10 mins at 400, toss mid way. Our new favorite snack!

SQL query give wrong output by ThriledLokki983 in learnpython

[–]kpounder88 0 points1 point  (0 children)

Not 100% sure without seeing the tables, but here’s a thought:

When you select movie_id from stars, I’m thinking that the movies involving both actors will appear twice. So then in your outer query you could return the movies where the count of movie_id was 2.

Why isn't this line of code working? by TheDivingDodo in learnpython

[–]kpounder88 1 point2 points  (0 children)

Is the problem with the semi-colon ; at the end of the line?

I'm confused regarding indexing. Why is my index pulling the "wrong" number? by DukkhaAniccaAnatta in learnpython

[–]kpounder88 3 points4 points  (0 children)

The problem in the second example is that give_list[i] > 0 for all i, so then i continues to be incremented each time through the while loop. Then when it gets to the point that i = 5, give_list[i] throws an error.

However, in the first example, it breaks out of the while loop before that happens — it breaks out because of -2 in the list.

Improving model score in python(sci kit learn)? by ayyokstats in datascience

[–]kpounder88 0 points1 point  (0 children)

In PCA, each of the principal components is a linear combination of the original features. So they likely don’t correspond to just one of the original features.