pydata/pandas — pull request #6632 by hayd (2014-03-13 22:50:51+00:00)
Title: ENH add base arg to value_counts

Often I find myself wanting to throw away values which aren't in a given set when doing `value_counts`...

This basically just does this but inside value_counts (before possibly sorting):

```
pd.value_counts(x).reindex(base, fill_value=0) # same as Series method
```

*I previously thought this was trickier to implement, so feel a bit stupid, but anyway could be useful....?*