import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

data = pd.read_csv('user2-ope.csv')
cols = data.columns.tolist()
correlations = data.corr()
print(correlations)
fig = plt.figure()
ax = fig.add_subplot(111)
cax = ax.matshow(correlations, vmin=-1, vmax=1)
fig.colorbar(cax)
ticks = np.arange(0, len(cols), 1)
ax.set_xticks(ticks)
ax.set_yticks(ticks)
ax.set_xticklabels(cols)
ax.set_yticklabels(cols)
ax.set_xticklabels(ax.get_xticklabels(), rotation=90, ha="right")
plt.show()