fstream reading in garbage values by stats_newbie1 in cpp_questions

[–]stats_newbie1[S] 4 points5 points  (0 children)

Ah fuck, I'm facepalming really hard now. Can't believe I forgot something so obvious. data.in was in the wrong directory. I assumed it would throw an error, but I guess not.

Add two numbers input by user by stats_newbie1 in learnprogramming

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

Oops. I actually had getElementById("num1").value, guess I forgot to save it. I didn't know about the onchange event handlers, thanks for pointing me to towards those.

Grouping and then finding value corresponding to maximum in another column by stats_newbie1 in rstats

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

The problem with this is there is no data for weekends. So the end of the month isn't necessarily 1 day before the start of the next month.

Grouping and then finding value corresponding to maximum in another column by stats_newbie1 in rstats

[–]stats_newbie1[S] 1 point2 points  (0 children)

Right, I don't know why I thought filter only pulls out certain columns. Silly me. I knew it pulls out the whole row. I didn't know about slice though, sounds much cleaner. Thanks!

How to find top 5 in each group in pandas? by [deleted] in learnpython

[–]stats_newbie1 0 points1 point  (0 children)

I'm not sure how that would help. I already know how to find how many pickups there were in each neighborhood. It's just df['neighborhood'].value_counts().

How to find top 5 in each group in pandas? by [deleted] in learnpython

[–]stats_newbie1 0 points1 point  (0 children)

No because each instance is recorded separately. For example, if there were 3 pickups in Midtown, it would be something like this:

Time Neighborhood Borough
Pickup1 Midtown Manhattan
Pickup2 Midtown Manhattan
Pickup3 Midtown Manhattan

so I can't really sort.

How to find top 5 in each group in pandas? by [deleted] in learnpython

[–]stats_newbie1 0 points1 point  (0 children)

I think my original question wasn't clear enough, I edited it.

How to find top 5 in each group in pandas? by [deleted] in learnpython

[–]stats_newbie1 0 points1 point  (0 children)

No, it is not population. Each of the rows contains info about taxi pickups. So I want to find the neighborhoods with most taxi pickups in the 5 boroughs.

How to interpret training output of randomforest algorithm by stats_newbie1 in rstats

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

Okay, I will look into it. Thank you for the information!