def grouping_data(processed_data):
    """
	A function to group all values for each 'animal_id'
	Input is 'processed_data' which is processed Pandas DataFrame
	Returns a dictionary where-
	key is animal_id, value in Pandas DataFrame for that 'animal_id'
	"""
    data_animal_id = processed_data.groupby('animal_id')
    data_animal_id_groups = {}
    for animal_id in data_animal_id.groups.keys():
        data_animal_id_groups[animal_id] = data_animal_id.get_group(animal_id)
    for animal_id in data_animal_id_groups.keys():
        data_animal_id_groups[animal_id].reset_index(drop=True, inplace=True)
    for aid in data_animal_id_groups.keys():
        data = [(0) for x in range(data_animal_id_groups[aid].shape[0])]
        data_animal_id_groups[aid] = data_animal_id_groups[aid].assign(distance
            =data)
        data_animal_id_groups[aid] = data_animal_id_groups[aid].assign(
            average_speed=data)
        data_animal_id_groups[aid] = data_animal_id_groups[aid].assign(
            average_acceleration=data)
        data_animal_id_groups[aid] = data_animal_id_groups[aid].assign(
            direction=data)
    return data_animal_id_groups
