# Plot correlation matrix using pandas

I have a data set with huge number of features, so analysing the correlation matrix has become very difficult. I want to plot a correlation matrix which we get using `dataframe.corr()`

function from pandas library. Is there any built-in function provided by the pandas library to plot this matrix?

You can use `pyplot.matshow()`

from `matplotlib`

:

```
import matplotlib.pyplot as plt
plt.matshow(dataframe.corr())
plt.show()
```

From: stackoverflow.com/q/29432629

**★ Back to homepage or read more recommendations:**