Add support for data groupby 

Add the feature to support groupby in the base metric class:
- Update the two functions, parse() and get_csv()
- Add two functions, name_to_index() and get_groupby_indexes()