Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 13833

Use for data science questions related to the programming language Python. Not intended for general coding questions (which should be asked on Stack Overflow).

6 votes
Accepted

Calculating the Standard Deviation by category using Python

You can easily do this using pandas: import pandas as pd import numpy as np df = pd.DataFrame([["AA", 1], ["AA", 3], ["BB", 3], ["CC", 5], ["BB", 2], ["AA", -1]]) df.columns = ["Category", "Score"] …
Stergios's user avatar
  • 320
7 votes
4 answers
10k views

From pairwise comparisons to ranking - python

Any python package that has, at least partially, the functionality I'm looking for? EDIT: I have the pairwise probs for for all possible pairs of i and j. …