Can you provide a sample of your dataset and your code? It will make it easier to work out how to do what you want to do.