It's good to choose friends who we want to be like and who we think are good influence on ourselves. We become like the people who we spend time with.
If you feel your friends are bad influences on you, you should not spend time with them. It doesn't mean that you have to hate them, you can still wish well for them and pray for their well-being from a distance.
The human being is like a piece of clay being molded, we are affected by those who are around us who subconsciously mold us into what we are, so if we don't like what we are being molded into, it is good to choose other people to spend time around as much as we can!