I have a matrix I have created by reading a tab-delimited text file using Numpy, it looks something like this:
sample category_a category_b value
------ ---------- ---------- -----
1 A Z 3.92
2 A Y 12.43
3 B Z 5.87
4 B Y 6.71
etc...
I would like to filter or group the data in order to perform some basic statistics, such as calculating the average value of each value of a single category, or combination of categories. Unfortunately, I am new to Numpy and do not see any obvious reference to this type of functionality in the documentation. Is it possible to group matrix data by category and perform calculations? Or do I need to filter the data going into the matrix when reading from the file and then perform the calculations?