This can be misleading, and consensus doesn't always equal truth.
Of 528 total papers on climate change, only 38 (7%) gave an explicit endorsement of the consensus. If one considers 'implicit' endorsement (accepting the consensus without explicit statement), the figure rises to 45%. However, while only 32 papers (6%) reject the consensus outright, the largest category (48%) are neutral papers, refusing to either accept or reject the hypothesis. This is no 'consensus.'
This doesn't explore the 'science' behind any of these papers, it's like a '4 out of 7 dentists agree' type of thing.
It wasn't that long ago when the consensus of the medical science community was that smoking didn't cause cancer.