Pandas came from a brown bear. These bears were found in tropical climates because that is where there main food source was.There main food source is still bamboo which is a type of plant.
Bears are carnivores but these bears eat bamboo because of how much grows in warm climates that the bears have adapted to an easy food source.
The bamboo started to change the bears white and slowly started getting black spots on them. The bears that chose not to adapt to eating bamboo ran out of food to eat and died off. Eventually all pandas started eating bamboo. The frequency of the panda population changed.
Not only have pandas died off because of their food choices but their habitats have been getting cut down which means that their food source gets low and there isn't enough food to feed these hungry pandas.
Pandas have established this white and black colour because of what they eat. The black circles around the eyes are used for communication and the rest of the black spots are used for camouflage against the pandas only predators, humans. Pandas also use there white fur to help them blend into the snow in the winter.
Overall pandas are going extinct because some of them wouldn't adapt but also because humans are slowly destroying their habitat and pretty soon these animals will be left with nothing and they will become extinct.